mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-20 03:12:05 +01:00
SOP: Fix mapping of encryption format
This commit is contained in:
parent
9497cbaeb1
commit
c31fd7d5e0
1 changed files with 1 additions and 2 deletions
|
@ -125,10 +125,9 @@ public class EncryptImpl implements Encrypt {
|
|||
private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) {
|
||||
switch (encryptAs) {
|
||||
case Binary:
|
||||
case MIME:
|
||||
return StreamEncoding.BINARY;
|
||||
case Text:
|
||||
return StreamEncoding.TEXT;
|
||||
case MIME:
|
||||
return StreamEncoding.UTF8;
|
||||
}
|
||||
throw new IllegalArgumentException("Invalid value encountered: " + encryptAs);
|
||||
|
|
Loading…
Reference in a new issue