Skip to content

Commit

Permalink
i wanna see green tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amagoosebitch committed Jun 6, 2023
1 parent d21e715 commit 32788bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ func (uploader *RegularUploader) Upload(path string, content io.Reader) error {
return ioErr
}
compressedSizeBytes := int64(len(compressedFileBytes))
if uploader.compressedSize != nil && *uploader.compressedSize != compressedSizeBytes {
setSize, compressionErr := uploader.CompressedDataSize()
if compressionErr == nil && setSize != compressedSizeBytes {
atomic.StoreInt64(uploader.compressedSize, compressedSizeBytes)
}

Expand Down

0 comments on commit 32788bc

Please sign in to comment.