Remove unnecessary else

This commit is contained in:
ekzyis 2023-09-28 01:22:41 +02:00
parent 97ed22d336
commit 2286d81481

View File

@ -38,8 +38,6 @@ func Encrypt(key []byte, plaintext string, options *EncryptOptions) (string, err
) )
if options.Version != 0 { if options.Version != 0 {
version = options.Version version = options.Version
} else {
version = 1
} }
if options.Salt != nil { if options.Salt != nil {
salt = options.Salt salt = options.Salt