luci-app-squid: remove variable redeclaration
authorDaniel Nilsson <dannil+github@protonmail.com>
Fri, 27 Dec 2024 18:37:18 +0000 (19:37 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 27 Dec 2024 18:48:37 +0000 (18:48 +0000)
Since 22d4830 the form variables m, s, and o was changed to be declared
with let instead of var, but the o variable was redeclared in the app,
resulting in a redeclaration error when it was changed to instead be
declared with let.

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
applications/luci-app-squid/htdocs/luci-static/resources/view/squid.js

index ef697a668e1fecba682bcbe6d5dde51878da8241..e37e669ec5f6c2910f7e49015a68a9b35a1156d8 100644 (file)
@@ -49,7 +49,7 @@ return view.extend({
                s.tab('general', _('General Settings'));
                s.tab('advanced', _('Advanced Settings'));
 
-               var o = s.taboption('general', form.Value, 'config_file', _('Config file'));
+               o = s.taboption('general', form.Value, 'config_file', _('Config file'));
                o.datatype = 'string';
                o.default = '/etc/squid/squid.conf';
                o.validate = function(section_id, value) {