diff --git a/tools/lint/lib/checks/license.py b/tools/lint/lib/checks/license.py index 3643939630..f6bc4b87bb 100644 --- a/tools/lint/lib/checks/license.py +++ b/tools/lint/lib/checks/license.py @@ -31,7 +31,7 @@ class CheckLicense(Check): match = _LICENSE_PATTERN.search(source) if not match: - return 'No license information found.' + return year_str = match.group(2) try: diff --git a/tools/lint/test/fixtures/license_missing.js b/tools/lint/test/fixtures/license_missing.js index 3d90cf27f3..e981dc7dbe 100644 --- a/tools/lint/test/fixtures/license_missing.js +++ b/tools/lint/test/fixtures/license_missing.js @@ -1,4 +1,3 @@ -LICENSE ^ expected errors | v input /*--- esid: sec-assignment-operators-static-semantics-early-errors