nix: Remove unneeded ok()

This commit is contained in:
Zhaofeng Li 2021-10-23 20:49:14 -07:00
parent d5f5ed6abb
commit 6d6e33fcd4

View file

@ -144,7 +144,7 @@ impl NodeConfig {
let username =
match &self.target_user {
Some(uname) => uname.clone(),
None => get_current_username().unwrap().into_string().ok().unwrap(),
None => get_current_username().unwrap().into_string().unwrap(),
};
let mut host = Ssh::new(username.clone(), target_host.clone());
host.set_privilege_escalation_command(self.privilege_escalation_command.clone());