aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_settings.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-06-05 08:06:37 +0000
committerGitHub <noreply@github.com>2023-06-05 08:06:37 +0000
commit7a7a201d819ea9920a1f067c556ec3998911f01a (patch)
tree5a834df58178642477e0ab8bd0ab0a53e66f153a /modules/ui_settings.py
parent9781f31f74c1f6acf8e1260f076aeb7a71e2766f (diff)
parent51864790fd72386fbbbb015d24a43ce501ecaa4b (diff)
downloadstable-diffusion-webui-gfx803-7a7a201d819ea9920a1f067c556ec3998911f01a.tar.gz
stable-diffusion-webui-gfx803-7a7a201d819ea9920a1f067c556ec3998911f01a.tar.bz2
stable-diffusion-webui-gfx803-7a7a201d819ea9920a1f067c556ec3998911f01a.zip
Merge pull request #10956 from akx/len
Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressions
Diffstat (limited to 'modules/ui_settings.py')
-rw-r--r--modules/ui_settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_settings.py b/modules/ui_settings.py
index 892c5e1a..0c560b30 100644
--- a/modules/ui_settings.py
+++ b/modules/ui_settings.py
@@ -81,7 +81,7 @@ class UiSettings:
opts.save(shared.config_filename)
except RuntimeError:
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.'
- return opts.dumpjson(), f'{len(changed)} settings changed{": " if len(changed) > 0 else ""}{", ".join(changed)}.'
+ return opts.dumpjson(), f'{len(changed)} settings changed{": " if changed else ""}{", ".join(changed)}.'
def run_settings_single(self, value, key):
if not opts.same_type(value, opts.data_labels[key].default):