Skip to content

Commit

Permalink
Fix another warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoppen committed Sep 29, 2024
1 parent ec1db0c commit b7b8565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/generate-swift-format/FileGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension FileGenerator {
try fm.removeItem(at: url)
}

fm.createFile(atPath: url.path, contents: nil, attributes: nil)
_ = fm.createFile(atPath: url.path, contents: nil, attributes: nil)
let handle = try FileHandle(forWritingTo: url)
defer { handle.closeFile() }

Expand Down
2 changes: 1 addition & 1 deletion Tests/swift-formatTests/Utilities/FileIteratorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extension FileIteratorTests {
let fileURL = tmpURL(path)
try FileManager.default.createDirectory(
at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true)
FileManager.default.createFile(atPath: fileURL.path, contents: Data())
_ = FileManager.default.createFile(atPath: fileURL.path, contents: Data())
}

/// Create a symlink between files or directories in the test's temporary space.
Expand Down

0 comments on commit b7b8565

Please sign in to comment.