Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
slivingston committed Sep 18, 2024
1 parent a1053d5 commit 208dadc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,7 @@ impl CurrentInstance {
let mut f = File::open(tunnelkey_public_path)?;
let mut tunnelkey_public = String::new();
f.read_to_string(&mut tunnelkey_public)?;
let proxy_mode = match self.wdeployment.cprovider {
CProvider::Proxy => true,
_ => false,
};
let proxy_mode = self.wdeployment.cprovider == CProvider::Proxy;
let message_id = self.send_create_sshtun(&tunnelkey_public, proxy_mode)?;
let st = std::time::Duration::from_secs(2);
let mut tunnelinfo = None;
Expand Down

0 comments on commit 208dadc

Please sign in to comment.