mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-12-23 04:31:06 +01:00
feat: freeze unused variables
This commit is contained in:
parent
6511816229
commit
8337681e99
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue