Преглед изворни кода

fix: don't re-assign variable

Co-authored-by: pini-gh <pini@debian.org>
Nicolas Duchon пре 1 година
родитељ
комит
418f1a3cd0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -452,7 +452,7 @@ proxy_set_header Proxy "";
 
 {{- /* Precompute some information about each vhost. */}}
 {{- range $hostname, $containers := groupByMulti $globals.containers "Env.VIRTUAL_HOST" "," }}
-    {{- $hostname := trim $hostname }}
+    {{- $hostname = trim $hostname }}
     {{- if not $hostname }}
         {{- /* Ignore containers with VIRTUAL_HOST set to the empty string. */}}
         {{- continue }}