diff options
author | zsloan | 2021-05-18 19:49:44 +0000 |
---|---|---|
committer | zsloan | 2021-05-18 19:49:44 +0000 |
commit | 36365588d95d96458da02090ebef21a02366784a (patch) | |
tree | 28e570219a3a6d2e9f8cf46df046ba4a71cbaa30 | |
parent | 5745c3bdd086f7c499ee63a580df822db5af2826 (diff) | |
download | genenetwork3-36365588d95d96458da02090ebef21a02366784a.tar.gz |
Removed len from this if statement, since an empty list evaluates to False by itself
-rw-r--r-- | gn3/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py index add715c..255ea1d 100644 --- a/gn3/commands.py +++ b/gn3/commands.py @@ -39,7 +39,7 @@ def compose_rqtl_cmd(rqtl_wrapper_cmd: str, [f"--{key} {val}" for key, val in rqtl_wrapper_kwargs.items()]) # Add boolean kwargs (kwargs without values) - if len(rqtl_wrapper_bool_kwargs): + if rqtl_wrapper_bool_kwargs: cmd += " " cmd += " ".join([f"--{val}" for val in rqtl_wrapper_bool_kwargs]) |