aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_hijack_clip_old.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-06-05 11:06:37 +0300
committerGitHub <noreply@github.com>2023-06-05 11:06:37 +0300
commit7a7a201d819ea9920a1f067c556ec3998911f01a (patch)
tree5a834df58178642477e0ab8bd0ab0a53e66f153a /modules/sd_hijack_clip_old.py
parent9781f31f74c1f6acf8e1260f076aeb7a71e2766f (diff)
parent51864790fd72386fbbbb015d24a43ce501ecaa4b (diff)
Merge pull request #10956 from akx/len
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}")