mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 07:09:36 +08:00
chore: add debug log to addWord function
!nuf
This commit is contained in:
parent
1141051716
commit
294847d389
1 changed files with 7 additions and 4 deletions
|
@ -545,10 +545,13 @@ export async function addWord(): Promise<void> {
|
|||
?.properties?.find((fp) => fp.startsWith("toPush:"));
|
||||
const toPushCount = funboxToPush?.split(":")[1];
|
||||
if (toPushCount !== undefined) bound = +toPushCount - 1;
|
||||
if (
|
||||
TestWords.words.length - TestInput.input.history.length > bound ||
|
||||
areAllTestWordsGenerated()
|
||||
) {
|
||||
|
||||
if (TestWords.words.length - TestInput.input.history.length > bound) {
|
||||
console.debug("Not adding word, enough words already");
|
||||
return;
|
||||
}
|
||||
if (areAllTestWordsGenerated()) {
|
||||
console.debug("Not adding word, all words generated");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue