Remove map_err and use ?

This commit is contained in:
TheAwiteb 2023-12-29 11:51:00 +03:00
parent e8d9941fee
commit 804313009d
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -46,8 +46,7 @@ impl RunCommand for Export {
Format::BitWarden => {
serde_json::to_string(&BitWardenPasswords::from(password_manager))
}
}
.map_err(LprsError::from)?;
}?;
fs::write(&self.path, exported_data).map_err(LprsError::from)
} else {