mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
Simplify a bunch of len(x) > 0/len(x) == 0 style expressions
This commit is contained in:
parent
3e995778fc
commit
51864790fd
25 changed files with 47 additions and 48 deletions
|
|
@ -280,7 +280,7 @@ class Api:
|
|||
script_args[0] = selectable_idx + 1
|
||||
|
||||
# Now check for always on scripts
|
||||
if request.alwayson_scripts and (len(request.alwayson_scripts) > 0):
|
||||
if request.alwayson_scripts:
|
||||
for alwayson_script_name in request.alwayson_scripts.keys():
|
||||
alwayson_script = self.get_script(alwayson_script_name, script_runner)
|
||||
if alwayson_script is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue