From dac77234413fb3e913623d8ace366de6799ce178 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 21 Dec 2025 20:25:15 +0100 Subject: [PATCH] Minor: comments --- src/RaspAP/Networking/Hotspot/DhcpcdManager.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/RaspAP/Networking/Hotspot/DhcpcdManager.php b/src/RaspAP/Networking/Hotspot/DhcpcdManager.php index 90115f69..f4c0052a 100644 --- a/src/RaspAP/Networking/Hotspot/DhcpcdManager.php +++ b/src/RaspAP/Networking/Hotspot/DhcpcdManager.php @@ -375,7 +375,6 @@ class DhcpcdManager } } if (!$matched && !preg_match('/^interface/', $line)) { - // check if this line matches a key we've already processed (prevents duplicates) $is_duplicate = false; foreach ($processed_keys as $processed_key) { if (strpos($line, $processed_key) === 0) { @@ -383,7 +382,6 @@ class DhcpcdManager break; } } - // also check if the line already exists in config (for non-static settings like nogateway) if (!$is_duplicate && !in_array($line, $config, true)) { $config[] = $line; }