forked from MapComplete/MapComplete
Refactoring: fix small errors, simplify 'sortedByLevehnstein'-function, improve error messgae
This commit is contained in:
parent
97b8202b14
commit
8a0023377a
13 changed files with 27 additions and 19 deletions
|
|
@ -167,7 +167,7 @@ export class ValidateTheme extends DesugaringStep<ThemeConfigJson> {
|
|||
)
|
||||
const available = new Set(knownIds)
|
||||
if (!isCategory && !available.has(backgroundId)) {
|
||||
const nearby = Utils.sortedByLevenshteinDistance(backgroundId, knownIds, (t) => t)
|
||||
const nearby = Utils.sortedByLevenshteinDistance(backgroundId, knownIds)
|
||||
context
|
||||
.enter("defaultBackgroundId")
|
||||
.err(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue