Fix arm guard

This commit is contained in:
Edward Shen 2021-10-31 01:01:05 -07:00
parent b833f97c55
commit 05d736e88e
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -90,7 +90,7 @@ fn main() {
let pw = window().prompt_with_message("A password is required to decrypt this paste:"); let pw = window().prompt_with_message("A password is required to decrypt this paste:");
match pw { match pw {
Ok(Some(password)) if password.is_empty() => { Ok(Some(password)) if !password.is_empty() => {
break Some(SecretVec::new(password.into_bytes())); break Some(SecretVec::new(password.into_bytes()));
} }
Err(_) => { Err(_) => {