Skip to content

Commit

Permalink
style: remove unnecessary else after return
Browse files Browse the repository at this point in the history
  • Loading branch information
Wooble committed Sep 16, 2019
1 parent 0232a61 commit 5781b4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pycounter/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,7 @@ def parse(filename, filetype=None, encoding="utf-8", fallback_encoding="latin-1"
return parse_xlsx(filename)
if filetype == "csv":
return parse_separated(filename, ",", encoding, fallback_encoding)
else:
raise PycounterException("Unknown file type %s" % filetype)
raise PycounterException("Unknown file type %s" % filetype)


def parse_xlsx(filename):
Expand Down

0 comments on commit 5781b4a

Please sign in to comment.