[check-goglefonts] condition 'licenses': always return a list (empty sometimes).
@@ -842,8 +842,8 @@ def check_OS2_usWeightClass(ttFont, style):
def licenses(family_directory):
"""Get a list of paths for every license
file found in a font project."""
- if family_directory:
licenses = []
+ if family_directory:
for license in ['OFL.txt', 'LICENSE.txt']:
license_path = os.path.join(family_directory, license)
if os.path.exists(license_path):
