Don't remove the first char of 'setting' twice

This commit is contained in:
jesopo 2019-04-07 17:46:35 +01:00
parent 2947b92792
commit 225c0d7793

View file

@ -241,7 +241,6 @@ class Module(ModuleManager.BaseModule):
existing_value = target.get_setting(setting, None)
if not existing_value == None:
if unset:
setting = setting[1:]
target.del_setting(setting)
return ConfigResult(ConfigResults.Removed)
else: