Skip to content

Commit

Permalink
Remove condition for copying password to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
anssip committed May 15, 2024
1 parent 6dce313 commit 5fe992a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/actions/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,8 @@ impl AddAction {
let creds = ui::ask_credentials(&password);
let mut vault = self.get_vault()?;
vault.save_one_credential(creds.clone())?;
if self.clipboard {
copy_to_clipboard(&password);
Ok(format!("Password - also copied to clipboard: {}", password))
} else {
Ok(format!("Password: {}", password))
}
copy_to_clipboard(&password);
Ok(format!("Password - also copied to clipboard: {}", password))
}
fn add_payment(&self) -> Result<String, Error> {
let payment = ui::ask_payment_info();
Expand Down

0 comments on commit 5fe992a

Please sign in to comment.