From 85f89e35911ba89c7d91be40ab25ea75c656c4fb Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 27 Jul 2020 08:21:52 +0200
Subject: [PATCH] fix: proper fix .json5 extension

---
 lib/config-validator.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/config-validator.ts b/lib/config-validator.ts
index 0de7daca3d..c0d1b3134b 100644
--- a/lib/config-validator.ts
+++ b/lib/config-validator.ts
@@ -46,7 +46,7 @@ type PackageJson = {
       console.log(`Validating ${file}`);
       try {
         let jsonContent;
-        if (file.endsWith('.json5'))) {
+        if (file.endsWith('.json5')) {
           jsonContent = JSON5.parse(rawContent) as PackageJson;
         } else {
           jsonContent = JSON.parse(rawContent) as PackageJson;
-- 
GitLab