[elbe-devel] [PATCH 07/16] commands: prjrepo: fix pylint

Torben Hohn torben.hohn at linutronix.de
Wed Jul 28 17:40:43 CEST 2021


elbepack/commands/prjrepo.py:62:7: C1801: Do not use `len(SEQUENCE)` to determine if a sequence is empty (len-as-condition)

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/commands/prjrepo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/prjrepo.py b/elbepack/commands/prjrepo.py
index 17073482c..985ba73cf 100644
--- a/elbepack/commands/prjrepo.py
+++ b/elbepack/commands/prjrepo.py
@@ -59,7 +59,7 @@ def run_command(argv):
 
     (opt, args) = oparser.parse_args(argv)
 
-    if len(args) < 1:
+    if not args:
         print("elbe prjrepo - no subcommand given", file=sys.stderr)
         RepoAction.print_actions()
         return
-- 
2.20.1



More information about the elbe-devel mailing list