Skip to content

Commit

Permalink
Add radix to parseInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
mquevill committed Feb 22, 2024
1 parent 977ccfb commit c996280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/browser/conversation-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async function updateTrayIcon(): Promise<void> {
const messageNumber = element?.ariaLabel?.match(/\d+/g);

if (messageNumber) {
messageCount += parseInt(messageNumber[0]);
messageCount += parseInt(messageNumber[0], 10);

Check failure on line 273 in source/browser/conversation-list.ts

View workflow job for this annotation

GitHub Actions / tests

Prefer `Number.parseInt()` over `parseInt()`.
}
}

Expand Down

0 comments on commit c996280

Please sign in to comment.