Skip to content

Commit

Permalink
Fix pylint complain: no need for elif after return
Browse files Browse the repository at this point in the history
  • Loading branch information
santisoler committed Feb 18, 2025
1 parent 17906dc commit a033335
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pooch/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,9 +777,8 @@ def download_action(path: Path, known_hash: Optional[str]) -> tuple[Action, str]
"""
if not path.exists():
return "download", "Downloading"
elif not hash_matches(str(path), known_hash):
if not hash_matches(str(path), known_hash):
return "update", "Updating"

return "fetch", "Fetching"


Expand Down

0 comments on commit a033335

Please sign in to comment.