diff --git a/tools/js2c.py b/tools/js2c.py index 0e82317505d687..1346b2a87046d3 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -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]