Skip to content

Commit

Permalink
luci-app-squid: remove variable redeclaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dannil authored and systemcrash committed Dec 27, 2024
1 parent a8f09c0 commit 235ec08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 235ec08

Please sign in to comment.