Skip to content

Commit 26c08fb

Browse files
authored
Merge pull request #14952 from PycKamil/remove-obsolete-check-in-DriverUtils.swift
2 parents d125425 + 782ee20 commit 26c08fb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

benchmark/utils/DriverUtils.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,10 @@ struct TestConfig {
208208
}
209209

210210
if let x = benchArgs.optionalArgsMap["--sleep"] {
211-
if x.isEmpty {
211+
guard let v = Int(x) else {
212212
return .fail("--sleep requires a non-empty integer value")
213213
}
214-
let v: Int? = Int(x)
215-
if v == nil {
216-
return .fail("--sleep requires a non-empty integer value")
217-
}
218-
afterRunSleep = v!
214+
afterRunSleep = v
219215
}
220216

221217
if let _ = benchArgs.optionalArgsMap["--list"] {

0 commit comments

Comments
 (0)