[K/N] Code cleanup from deprecation warnings

No functionality change; just quieting some warnings
This commit is contained in:
Troels Bjerre Lund
2022-06-09 15:38:14 +02:00
committed by Space
parent 71e617a7f5
commit 90754d11c1
5 changed files with 23 additions and 28 deletions
@@ -175,9 +175,8 @@ fun main(args: Array<String>) {
// Get unstable benchmarks.
val unstableBenchmarks = if (!flatReport) DBServerConnector.getUnstableBenchmarks() else null
unstableBenchmarks ?:
if (!flatReport)
println("Failed to get access to server and get unstable benchmarks list!")
if (!flatReport && unstableBenchmarks == null)
println("Failed to get access to server and get unstable benchmarks list!")
// Read contents of file.
val mainBenchsReport = mergeReportsWithDetailedFlags(getBenchmarkReport(mainReport, user))