Skip to content

Commit 8678b3e

Browse files
committed
remove unused variable
1 parent 75b6cb4 commit 8678b3e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/KubernetesPfSenseController/Plugin/DNSHAProxyIngressProxy.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ public function doAction()
130130
if (empty($managedHosts)) {
131131
$managedHosts = [];
132132
}
133-
$hosts = [];
133+
134134
foreach ($managedFrontends as $frontendName => $frontendDetails) {
135-
$hosts[$frontendName] = [];
136135
$primaryFrontendName = $haProxyConfig->getFrontend($frontendName)['primary_frontend'];
137136
$hostName = $pluginConfig['frontends'][$primaryFrontendName]['hostname'];
138137

@@ -145,7 +144,6 @@ public function doAction()
145144
continue;
146145
}
147146

148-
$hosts[$frontendName][] = $rule['host'];
149147
$managedHostsPreSave[$hostName][] = $rule['host'];
150148
}
151149
}
@@ -166,7 +164,6 @@ public function doAction()
166164
}
167165
}
168166

169-
//foreach ($hosts as $frontendName => $value) {
170167
foreach ($managedHostsPreSave as $hostName => $aliases) {
171168
$itemId = [
172169
'host' => explode('.', $hostName, 2)[0],

0 commit comments

Comments
 (0)