refactor: Decompose archive func

This commit is contained in:
Felix Pojtinger
2021-12-07 21:12:23 +01:00
parent 23784eed97
commit ff7803416d
20 changed files with 966 additions and 914 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func Decrypt(
case config.NoneKey:
return io.NopCloser(src), nil
default:
return nil, config.ErrUnsupportedEncryptionFormat
return nil, config.ErrEncryptionFormatUnsupported
}
}
@@ -136,6 +136,6 @@ func DecryptString(
case config.NoneKey:
return src, nil
default:
return "", config.ErrUnsupportedEncryptionFormat
return "", config.ErrEncryptionFormatUnsupported
}
}