Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #58 from leksak/patch-1
Browse files Browse the repository at this point in the history
Succinct return statement
  • Loading branch information
modocache committed Jul 29, 2015
2 parents bf002a0 + 078169d commit 815fa08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/codemod.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def is_extensionless(path):
True
"""
_, ext = os.path.splitext(path)
if ext == '':
return True
else:
return False
return ext == ''

def matches_extension(path, extension):
"""
Expand Down

0 comments on commit 815fa08

Please sign in to comment.