Skip to content

Commit 8819c0b

Browse files
committed
Always return a bool #2233
This avoids wrapping results in a boolean Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 9f3cb10 commit 8819c0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extractcode/archive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def can_extract(location):
102102
handlers = list(get_handlers(location))
103103
if handlers:
104104
return True
105+
else:
106+
return False
105107

106108

107109
def should_extract(location, kinds, ignore_pattern=()):

0 commit comments

Comments
 (0)