Skip to content

Commit

Permalink
Swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
weichsel committed Jun 9, 2024
1 parent bc263d8 commit a077036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/ZIPFoundation/Archive+MemoryFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ private extension Archive.MemoryFile {
self.data.append(buffer.bindMemory(to: UInt8.self))
} else {
let start = self.data.startIndex // May have changed in earlier mutation
self.data.replaceSubrange(start+self.offset..<start+self.offset+buffer.count, with: buffer.bindMemory(to: UInt8.self))
self.data.replaceSubrange(
start+self.offset..<start+self.offset+buffer.count,
with: buffer.bindMemory(to: UInt8.self)
)
}
self.offset += buffer.count
return buffer.count
Expand Down

0 comments on commit a077036

Please sign in to comment.