From 6d6e33fcd4f498aca4b15a773eacb5429fe652a4 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 23 Oct 2021 20:49:14 -0700 Subject: [PATCH] nix: Remove unneeded ok() --- src/nix/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/mod.rs b/src/nix/mod.rs index 90407d9..8249217 100644 --- a/src/nix/mod.rs +++ b/src/nix/mod.rs @@ -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());