refactoring

This commit is contained in:
Chris Lu
2020-03-27 00:30:55 -07:00
parent 2f5ed29c37
commit e1911760a7
2 changed files with 3 additions and 2 deletions

View File

@@ -80,7 +80,6 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i
if !isInputGzipped {
if shouldBeZipped, iAmSure := util.IsGzippableFileType(filepath.Base(filename), mtype); iAmSure && shouldBeZipped {
shouldGzipNow = true
contentIsGzipped = true
} else if len(data) > 128 {
var compressed []byte
compressed, err = util.GzipData(data[0:128])