aboutsummaryrefslogtreecommitdiffhomepage
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index a6d1d16490..281ca5a6cf 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -187,7 +187,8 @@ def _CheckGNFormatted(input_api, output_api):
"""Make sure any .gn files we're changing have been formatted."""
results = []
for f in input_api.AffectedFiles():
- if not f.LocalPath().endswith('.gn'):
+ if (not f.LocalPath().endswith('.gn') and
+ not f.LocalPath().endswith('.gni')):
continue
gn = 'gn.bat' if 'win32' in sys.platform else 'gn'