Skip to content

Commit

Permalink
style(lib/helpers): fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesprague committed May 19, 2024
1 parent 505e172 commit 144f482
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const lockWakeState = async () => {

try {
wakelock = await navigator.wakeLock.request();
// biome-ignore lint/correctness/noUnusedVariables: <explanation>
} catch (e) {
// console.error('failed to lock wake state:', e.message);
wakelock = null;
Expand Down Expand Up @@ -154,6 +155,7 @@ export const initAnalytics = () => {

function gtag() {
// biome-ignore lint/style/noArguments: <explanation>
// biome-ignore lint/correctness/noUndeclaredVariables: <explanation>
dataLayer.push(arguments);
}

Expand Down Expand Up @@ -272,15 +274,15 @@ export const colorGuess = (currentRow) => {
}
});

guessArray.forEach((guess) => {
for (const guess of guessArray) {
if (
checkBirdle.includes(guess.letter) &&
guess.color !== 'correct-overlay'
) {
guess.color = 'present-overlay';
checkBirdle = checkBirdle.replace(guess.letter, '');
}
});
}

guesses.forEach((guess, guessIndex) => {
const dataLetter = guess.textContent.toLowerCase();
Expand Down

0 comments on commit 144f482

Please sign in to comment.