Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rsvihladremio committed Oct 12, 2023
1 parent e6cfb4b commit 249642e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sendsafely/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,13 @@ func DownloadFilesFromPackage(d *downloader.GenericDownloader, packageID, keyCod
if err != nil {
reporting.AddFailed()
return "", invalidFiles, fmt.Errorf("unable to combine downloaded parts for file %v: %v", fileName, err)
} else {
fmt.Print(".")
slog.Debug("file is complete", "file_name", newFile, "file_size", Human(written), "file_size_in_bytes", written)
}
if !FileSizeMatches(fullPath, fileSize) {
reporting.AddFailed()
return "", invalidFiles, fmt.Errorf("files sizes are out of sync for file %v: %v", fileName, err)
}
fmt.Print(".")
slog.Debug("file is complete", "file_name", newFile, "file_size", Human(written), "file_size_in_bytes", written)
reporting.AddBytes(fileSize)

}
Expand Down

0 comments on commit 249642e

Please sign in to comment.