aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_hijack_clip_old.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2023-06-02 11:58:10 +0000
committerAarni Koskela <akx@iki.fi>2023-06-02 12:07:10 +0000
commit51864790fd72386fbbbb015d24a43ce501ecaa4b (patch)
treea114dc065c25ec267043f35dea735f8e3097e9a0 /modules/sd_hijack_clip_old.py
parent3e995778fc525ff15d56c1472c1a1bc701019ec5 (diff)
downloadstable-diffusion-webui-gfx803-51864790fd72386fbbbb015d24a43ce501ecaa4b.tar.gz
stable-diffusion-webui-gfx803-51864790fd72386fbbbb015d24a43ce501ecaa4b.tar.bz2
stable-diffusion-webui-gfx803-51864790fd72386fbbbb015d24a43ce501ecaa4b.zip
Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressions
Diffstat (limited to 'modules/sd_hijack_clip_old.py')
-rw-r--r--modules/sd_hijack_clip_old.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack_clip_old.py b/modules/sd_hijack_clip_old.py
index a3476e95..c5c6270b 100644
--- a/modules/sd_hijack_clip_old.py
+++ b/modules/sd_hijack_clip_old.py
@@ -74,7 +74,7 @@ def forward_old(self: sd_hijack_clip.FrozenCLIPEmbedderWithCustomWordsBase, text
self.hijack.comments += hijack_comments
- if len(used_custom_terms) > 0:
+ if used_custom_terms:
embedding_names = ", ".join(f"{word} [{checksum}]" for word, checksum in used_custom_terms)
self.hijack.comments.append(f"Used embeddings: {embedding_names}")