From 8337681e996f1c2a55652e5c6bc703ec47ee4ac0 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Wed, 13 Jul 2022 17:50:54 +0200 Subject: [PATCH] feat: freeze unused variables --- src/utils/githubUtils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/githubUtils.ts b/src/utils/githubUtils.ts index 7e65e2e..1231d4e 100644 --- a/src/utils/githubUtils.ts +++ b/src/utils/githubUtils.ts @@ -78,7 +78,8 @@ export const fetchIssues = async() => { } Logger.success(`Issues have been fetched for ${repository} - ${issues}`); - issues = 0; + issues = null; + Object.freeze(issues); } } @@ -122,7 +123,8 @@ export const fetchPullRequests = async() => { } Logger.success(`Pull requests have been fetched for ${repository} - ${pulls}`); - pulls = 0; + pulls = null; + Object.freeze(pulls); } }