Skip to content

Commit

Permalink
Disable erroneous swiftlint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
weichsel committed Jun 8, 2024
1 parent a98cf2c commit 18eb7af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/ZIPFoundation/Archive+Reading.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ extension Archive {
throw CocoaError(.fileWriteFileExists, userInfo: [NSFilePathErrorKey: url.path])
}
let consumer = { (data: Data) in
// swiftlint:disable:next non_optional_string_data_conversion
guard let linkPath = String(data: data, encoding: .utf8) else { throw ArchiveError.invalidEntryPath }

let parentURL = url.deletingLastPathComponent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ private struct ZIPInfo: Hashable {
unzipTask.standardError = pipe
unzipTask.launch()
let unzipOutputData = pipe.fileHandleForReading.readDataToEndOfFile()
// swiftlint:disable:next non_optional_string_data_conversion
let unzipOutput = String(data: unzipOutputData, encoding: .utf8)!
unzipTask.waitUntilExit()
return unzipOutput.split(whereSeparator: \.isNewline)
Expand Down

0 comments on commit 18eb7af

Please sign in to comment.