Fix arm guard
This commit is contained in:
parent
b833f97c55
commit
05d736e88e
1 changed files with 1 additions and 1 deletions
|
@ -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(_) => {
|
||||||
|
|
Loading…
Reference in a new issue