Skip to content

Commit

Permalink
Minor change to keep consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Dec 5, 2023
1 parent b27645f commit 4ec3314
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rust/agama-lib/src/network/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,7 @@ impl<'a> NetworkClient<'a> {
let interface = conn.interface.as_deref().unwrap_or("");
proxy.set_interface(interface).await?;

let mac_address = if let Some(mac_address) = &conn.mac_address {
mac_address
} else {
""
};
let mac_address = conn.mac_address.as_deref().unwrap_or("");
proxy.set_mac_address(mac_address).await?;

self.update_ip_settings(path, conn).await?;
Expand Down

0 comments on commit 4ec3314

Please sign in to comment.