# HG changeset patch # User Søren Løvborg # Date 2016-01-05 18:51:07 # Node ID 75d89f00a4b53ed775ec9c848ea8da3cd2f7d02b # Parent 07f63824a52d3ed8ab829cd15cee05321f56ea7a admin: remove superfluous check in SettingsController diff --git a/kallithea/controllers/admin/settings.py b/kallithea/controllers/admin/settings.py --- a/kallithea/controllers/admin/settings.py +++ b/kallithea/controllers/admin/settings.py @@ -74,8 +74,7 @@ class SettingsController(BaseController) if k == 'web_push_ssl': v = str2bool(v) - if k.find('.') != -1: - k = k.replace('.', '_') + k = k.replace('.', '_') if each.ui_section in ['hooks', 'extensions']: v = each.ui_active