Don't remove the first char of 'setting' twice
This commit is contained in:
parent
2947b92792
commit
225c0d7793
1 changed files with 0 additions and 1 deletions
|
@ -241,7 +241,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
existing_value = target.get_setting(setting, None)
|
existing_value = target.get_setting(setting, None)
|
||||||
if not existing_value == None:
|
if not existing_value == None:
|
||||||
if unset:
|
if unset:
|
||||||
setting = setting[1:]
|
|
||||||
target.del_setting(setting)
|
target.del_setting(setting)
|
||||||
return ConfigResult(ConfigResults.Removed)
|
return ConfigResult(ConfigResults.Removed)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue