Skip to content

Commit

Permalink
fix: reduce posible number of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
maasencioh committed Nov 8, 2021
1 parent dc9f1ed commit 6edcd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function intToChar(int: number) {
}

export function nextChar(keys: string[]): OneLowerCase {
for (let int = 0; int < 52; int++) {
for (let int = 0; int < 25; int++) {
const char = intToChar(int);
if (!keys.includes(char)) return char;
}
Expand Down

0 comments on commit 6edcd28

Please sign in to comment.