From ee49e68c78017335e8a4a8500103ba4ce375c974 Mon Sep 17 00:00:00 2001 From: Tweak Date: Sat, 21 Jan 2023 11:51:21 -0700 Subject: [PATCH] Update getJSON.js --- utils/getJSON.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/getJSON.js b/utils/getJSON.js index a9cf18a..c601662 100644 --- a/utils/getJSON.js +++ b/utils/getJSON.js @@ -5,7 +5,7 @@ const core = require('@actions/core'); function getJSON(file, filename) { const path = `${process.env.actions_path}/${file}`; // File path. const ext = getFileExtension(file); - if (path.includes("sub-logs") && (!ext || ext != 'json')) return 3 //if file is subdomain file but has no ext or diff ext than .json + if (path.includes("sub-logs") && !ext || ext != 'json') return 3 //if file is subdomain file but has no ext or diff ext than .json if (!ext) return false; // If no file extension, return. if (ext != 'json') return false; // If file extension is not '.json' return.