Skip to content

Commit

Permalink
fix: clippy warnings in client-linuxapp
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Diez <[email protected]>
  • Loading branch information
7flying committed Oct 26, 2023
1 parent d8f3066 commit 53b8e26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client-linuxapp/src/serviceinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,14 +722,13 @@ async fn process_serviceinfo_in(si_in: &ServiceInfo, si_out: &mut ServiceInfo) -
sshkey_user.as_ref().unwrap()
))?;
}
if sshkey_keys.is_some() {
if let Some(sshkey_keys) = sshkey_keys {
log::info!("SSHkey module was active, installing SSH keys");
create_user(sshkey_user.as_ref().unwrap()).context(format!(
"Error creating new user: {}",
sshkey_user.as_ref().unwrap()
))?;
let sshkey_keys_v: Vec<String> = sshkey_keys
.unwrap()
.split(';')
.map(|s| s.to_string())
.collect();
Expand Down

0 comments on commit 53b8e26

Please sign in to comment.