Skip to content

Commit 03cb67c

Browse files
committed
Suppress FileManager.createFile warning on Linux
Works around https://bugs.swift.org/browse/SR-1638
1 parent 5d058eb commit 03cb67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntax/JSONDiagnosticConsumer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public final class JSONDiagnosticConsumer: DiagnosticConsumer {
6060
if FileManager.default.fileExists(atPath: url.path) {
6161
try FileManager.default.removeItem(at: url)
6262
}
63-
FileManager.default.createFile(atPath: url.path, contents: data)
63+
_ = FileManager.default.createFile(atPath: url.path, contents: data)
6464
case .stdout:
6565
FileHandle.standardOutput.write(data)
6666
}

0 commit comments

Comments
 (0)