rename UnCompressData to DecompressData

This commit is contained in:
Chris Lu
2020-06-20 08:16:16 -07:00
parent 97239ce6f1
commit 3080c197e3
7 changed files with 8 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ func GzipData(input []byte) ([]byte, error) {
}
return buf.Bytes(), nil
}
func UnCompressData(input []byte) ([]byte, error) {
func DecompressData(input []byte) ([]byte, error) {
if IsGzippedContent(input) {
return ungzipData(input)
}

View File

@@ -310,7 +310,7 @@ func readEncryptedUrl(fileUrl string, cipherKey []byte, isContentCompressed bool
return fmt.Errorf("decrypt %s: %v", fileUrl, err)
}
if isContentCompressed {
decryptedData, err = UnCompressData(decryptedData)
decryptedData, err = DecompressData(decryptedData)
if err != nil {
return fmt.Errorf("unzip decrypt %s: %v", fileUrl, err)
}