mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 08:47:36 +08:00
prettier fix
This commit is contained in:
parent
d1cba45afe
commit
7e9a7efd79
3 changed files with 76908 additions and 76906 deletions
|
|
@ -404,14 +404,16 @@ function validateQuotes() {
|
|||
quoteIdsAllGood = false;
|
||||
quoteIdsErrors = quoteIdsValidator.errors;
|
||||
}
|
||||
const incorrectQuoteLength = quoteData.quotes
|
||||
.filter((quote) => quote.text.length !== quote.length)
|
||||
const incorrectQuoteLength = quoteData.quotes.filter(
|
||||
(quote) => quote.text.length !== quote.length
|
||||
);
|
||||
if (incorrectQuoteLength.length !== 0) {
|
||||
console.log("Some length fields are \u001b[31mincorrect\u001b[0m");
|
||||
incorrectQuoteLength
|
||||
.map((quote) => { console.log(
|
||||
incorrectQuoteLength.map((quote) => {
|
||||
console.log(
|
||||
`Quote ${quotefilename} ID ${quote.id}: expected length ${quote.text.length}`
|
||||
)});
|
||||
);
|
||||
});
|
||||
quoteFilesAllGood = false;
|
||||
incorrectQuoteLength.map((quote) => {
|
||||
quoteLengthErrors.push(
|
||||
|
|
|
|||
|
|
@ -528,4 +528,4 @@
|
|||
"code_assembly"
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue