luci-app-squid: remove variable redeclaration

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>
This commit is contained in:
Daniel Nilsson
2024-12-27 19:37:18 +01:00
committed by Paul Donald
parent a8f09c0ee0
commit 235ec08a6a

View File

@@ -49,7 +49,7 @@ return view.extend({
s.tab('general', _('General Settings')); s.tab('general', _('General Settings'));
s.tab('advanced', _('Advanced 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.datatype = 'string';
o.default = '/etc/squid/squid.conf'; o.default = '/etc/squid/squid.conf';
o.validate = function(section_id, value) { o.validate = function(section_id, value) {