Skip to content

Commit d590245

Browse files
committed
Change if to guard
1 parent c21bcb5 commit d590245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-test/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ do {
2424
setenv("SPM_INSTALL_PATH", dir.build, 0)
2525

2626
let yamlPath = Path.join(dir.build, "debug.yaml")
27-
if !yamlPath.exists { throw Error.DebugYAMLNotFound }
27+
guard yamlPath.exists else { throw Error.DebugYAMLNotFound }
2828

2929
try build(YAMLPath: yamlPath, target: "test")
3030
let success = test(dir.build, "debug")

0 commit comments

Comments
 (0)