From 4ec3314e4677eb302a7aa96e7a07dc0513f9af69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Tue, 5 Dec 2023 14:39:47 +0000 Subject: [PATCH] Minor change to keep consistency --- rust/agama-lib/src/network/client.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rust/agama-lib/src/network/client.rs b/rust/agama-lib/src/network/client.rs index aecd0b481a..d8e3077216 100644 --- a/rust/agama-lib/src/network/client.rs +++ b/rust/agama-lib/src/network/client.rs @@ -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?;