mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[TAR] Remove argument label from TarWriter.append
This commit is contained in:
@@ -21,7 +21,7 @@ public struct TarWriter {
|
||||
self.localPaxHeaderCounter = 0
|
||||
}
|
||||
|
||||
public mutating func append(entry: TarEntry) throws {
|
||||
public mutating func append(_ entry: TarEntry) throws {
|
||||
var out = Data()
|
||||
if format == .gnu {
|
||||
if entry.info.name.utf8.count > 100 {
|
||||
|
||||
@@ -66,7 +66,7 @@ class TarCreateTests: XCTestCase {
|
||||
try "".write(to: tempFileUrl, atomically: true, encoding: .utf8)
|
||||
let handle = try FileHandle(forWritingTo: tempFileUrl)
|
||||
var writer = TarWriter(fileHandle: handle)
|
||||
try writer.append(entry: entry)
|
||||
try writer.append(entry)
|
||||
try writer.finalize()
|
||||
let containerData = try Data(contentsOf: tempFileUrl)
|
||||
XCTAssertEqual(try TarContainer.formatOf(container: containerData), .pax)
|
||||
|
||||
Reference in New Issue
Block a user