@@ -375,7 +375,7 @@ class SnapshotDownloadTests: XCTestCase {
375375 ] )
376376 )
377377
378- let _ = try await hubApi. snapshot ( from: repo, matching: " *.json " ) { progress in
378+ _ = try await hubApi. snapshot ( from: repo, matching: " *.json " ) { progress in
379379 print ( " Total Progress: \( progress. fractionCompleted) " )
380380 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
381381 lastProgress = progress
@@ -419,7 +419,7 @@ class SnapshotDownloadTests: XCTestCase {
419419
420420 let originalMetadata = try String ( contentsOf: metadataPath, encoding: . utf8)
421421
422- let _ = try await hubApi. snapshot ( from: repo, matching: " tokenizer.json " ) { progress in
422+ _ = try await hubApi. snapshot ( from: repo, matching: " tokenizer.json " ) { progress in
423423 print ( " Total Progress: \( progress. fractionCompleted) " )
424424 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
425425 lastProgress = progress
@@ -483,7 +483,7 @@ class SnapshotDownloadTests: XCTestCase {
483483 print ( " Testing corrupted file. " )
484484 try " a " . write ( to: metadataDestination. appendingPathComponent ( " config.json.metadata " ) , atomically: true , encoding: . utf8)
485485
486- let _ = try await hubApi. snapshot ( from: repo, matching: " *.json " ) { progress in
486+ _ = try await hubApi. snapshot ( from: repo, matching: " *.json " ) { progress in
487487 print ( " Total Progress: \( progress. fractionCompleted) " )
488488 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
489489 lastProgress = progress
@@ -499,7 +499,7 @@ class SnapshotDownloadTests: XCTestCase {
499499 print ( " Testing corrupted timestamp. " )
500500 try " a \n b \n c \n " . write ( to: metadataDestination. appendingPathComponent ( " config.json.metadata " ) , atomically: true , encoding: . utf8)
501501
502- let _ = try await hubApi. snapshot ( from: repo, matching: " *.json " ) { progress in
502+ _ = try await hubApi. snapshot ( from: repo, matching: " *.json " ) { progress in
503503 print ( " Total Progress: \( progress. fractionCompleted) " )
504504 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
505505 lastProgress = progress
@@ -552,7 +552,7 @@ class SnapshotDownloadTests: XCTestCase {
552552 let metadataFile = metadataDestination. appendingPathComponent ( " llama-2-7b-chat.mlpackage/Data/com.apple.CoreML/model.mlmodel.metadata " )
553553 try corruptedMetadataString. write ( to: metadataFile, atomically: true , encoding: . utf8)
554554
555- let _ = try await hubApi. snapshot ( from: repo, matching: " *.mlmodel " ) { progress in
555+ _ = try await hubApi. snapshot ( from: repo, matching: " *.mlmodel " ) { progress in
556556 print ( " Total Progress: \( progress. fractionCompleted) " )
557557 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
558558 lastProgress = progress
@@ -702,7 +702,7 @@ class SnapshotDownloadTests: XCTestCase {
702702 let metadataFile = metadataDestination. appendingPathComponent ( " x.bin.metadata " )
703703 try FileManager . default. removeItem ( atPath: metadataFile. path)
704704
705- let _ = try await hubApi. snapshot ( from: lfsRepo, matching: " x.bin " ) { progress in
705+ _ = try await hubApi. snapshot ( from: lfsRepo, matching: " x.bin " ) { progress in
706706 print ( " Total Progress: \( progress. fractionCompleted) " )
707707 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
708708 lastProgress = progress
@@ -753,7 +753,7 @@ class SnapshotDownloadTests: XCTestCase {
753753 let metadataFile = metadataDestination. appendingPathComponent ( " x.bin.metadata " )
754754 try " a " . write ( to: metadataFile, atomically: true , encoding: . utf8)
755755
756- let _ = try await hubApi. snapshot ( from: lfsRepo, matching: " x.bin " ) { progress in
756+ _ = try await hubApi. snapshot ( from: lfsRepo, matching: " x.bin " ) { progress in
757757 print ( " Total Progress: \( progress. fractionCompleted) " )
758758 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
759759 lastProgress = progress
@@ -804,7 +804,7 @@ class SnapshotDownloadTests: XCTestCase {
804804 let metadataFile = metadataDestination. appendingPathComponent ( " config.json.metadata " )
805805 try FileManager . default. removeItem ( atPath: metadataFile. path)
806806
807- let _ = try await hubApi. snapshot ( from: repo, matching: " config.json " ) { progress in
807+ _ = try await hubApi. snapshot ( from: repo, matching: " config.json " ) { progress in
808808 print ( " Total Progress: \( progress. fractionCompleted) " )
809809 print ( " Files Completed: \( progress. completedUnitCount) of \( progress. totalUnitCount) " )
810810 lastProgress = progress
0 commit comments