Skip to content

Commit 8b997b4

Browse files
authored
Removed redundant check
Since init for Int with empty string returns nil there is no need for additional checking for empty string
1 parent 0cd182d commit 8b997b4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

benchmark/utils/DriverUtils.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ struct TestConfig {
208208
}
209209

210210
if let x = benchArgs.optionalArgsMap["--sleep"] {
211-
if x.isEmpty {
212-
return .fail("--sleep requires a non-empty integer value")
213-
}
214211
let v: Int? = Int(x)
215212
if v == nil {
216213
return .fail("--sleep requires a non-empty integer value")

0 commit comments

Comments
 (0)