Skip to content

Commit

Permalink
Ensure boolean return type for utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
wummel committed Feb 14, 2025
1 parent 67faaa1 commit 9ccfe99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patoolib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def p7zip_supports_rar() -> bool:
_7z = find_program("7z")
if _7z:
formats = backtick([_7z, "i"])
return re.search(r" Rar\d$", formats, re.MULTILINE)
return bool(re.search(r" Rar\d$", formats, re.MULTILINE))
return False


Expand Down

0 comments on commit 9ccfe99

Please sign in to comment.