Skip to content

Commit

Permalink
Refactor rate limit API verification logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Jan 24, 2024
1 parent e3d5c07 commit 5caa3e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/data_validation_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,13 @@ export async function verifyRateLimitAPI(octokit: Octokit, settings: GitHubPubli
new Notice(i18next.t("commands.checkValidity.rateLimit.limited", {resetTime: time}));
return 0;
}
if (!commands) {
notif({settings}, i18next.t("commands.checkValidity.rateLimit.notLimited", {
remaining: remaining,
if (commands) {
new Notice(i18next.t("commands.checkValidity.rateLimit.notLimited", {
remaining,
resetTime: time
}));
} else {
new Notice(i18next.t("commands.checkValidity.rateLimit.notLimited", {
notif({settings}, i18next.t("commands.checkValidity.rateLimit.notLimited", {
remaining,
resetTime: time
}));
Expand Down

0 comments on commit 5caa3e1

Please sign in to comment.