Skip to content

Commit

Permalink
Swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
weichsel committed Dec 22, 2024
1 parent c1ce2fb commit e9d0bfe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Sources/ZIPFoundation/Archive+Reading.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ 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,7 +276,6 @@ 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 e9d0bfe

Please sign in to comment.