Skip to content

Commit

Permalink
squash: only assume that split is a enumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
danbev committed Aug 12, 2019
1 parent d1dae25 commit a656ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/js2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def NormalizeFileName(filename):
split = ['internal'] + split
else: # `lib/**/*.js` so drop the 'lib' part
split = split[1:]
if split != []:
if len(split):
filename = '/'.join(split)
return os.path.splitext(filename)[0]

Expand Down

0 comments on commit a656ed3

Please sign in to comment.