about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-06-22 18:02:28 +0200
committertoonn <toonn@toonn.io>2021-06-22 18:07:09 +0200
commit01e4174a21f6bd853693c10d67900bdc3caf9d03 (patch)
treea4006bccebe35378a08789687aafadaa57847993 /ranger
parentd4db5c618e62cd9c4b94d0ad14e004294b800dc3 (diff)
downloadranger-01e4174a21f6bd853693c10d67900bdc3caf9d03.tar.gz
tags: Fix argument length checking
Fixes #2295

Co-authored-by: chu4ng <chu4ng@users.noreply.github.com>
Diffstat (limited to 'ranger')
-rw-r--r--ranger/container/tags.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/container/tags.py b/ranger/container/tags.py
index 50525848..dadb60f0 100644
--- a/ranger/container/tags.py
+++ b/ranger/container/tags.py
@@ -31,7 +31,7 @@ class Tags(FileManagerAware):
         return item in self.tags
 
     def add(self, *items, **others):
-        if len(*items) == 0:
+        if len(items) == 0:
             return
         tag = others.get('tag', self.default_tag)
         self.sync()
@@ -40,7 +40,7 @@ class Tags(FileManagerAware):
         self.dump()
 
     def remove(self, *items):
-        if len(*items) == 0:
+        if len(items) == 0:
             return
         self.sync()
         for item in items:
@@ -51,7 +51,7 @@ class Tags(FileManagerAware):
         self.dump()
 
     def toggle(self, *items, **others):
-        if len(*items) == 0:
+        if len(items) == 0:
             return
         tag = others.get('tag', self.default_tag)
         tag = str(tag)