Skip to content

Commit

Permalink
Merge pull request #342 from weichsel/Inline_data
Browse files Browse the repository at this point in the history
Swiftlint
  • Loading branch information
weichsel authored Dec 22, 2024
2 parents 82168c5 + e9d0bfe commit f50d9de
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 f50d9de

Please sign in to comment.