rename UnCompressData to DecompressData

This commit is contained in:
Chris Lu committed 2020-06-20 08:16:16 -07:00
1 parent 97239ce6f1
commit 3080c197e3
7 files changed
+8 -8

No files matched your search

+1 -1
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)
}
+1 -1
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)
}