forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
a190597905
commit
087e639020
382 changed files with 29496 additions and 2675 deletions
|
|
@ -130,9 +130,11 @@ export class DoesImageExist extends DesugaringStep<string> {
|
|||
|
||||
private static licensePaths: Set<string>
|
||||
|
||||
public static constructWithLicenses(checkExistsSync?: (path: string) => boolean, ignore?: Set<string>) {
|
||||
public static constructWithLicenses(
|
||||
checkExistsSync?: (path: string) => boolean,
|
||||
ignore?: Set<string>
|
||||
) {
|
||||
if (!DoesImageExist.licensePaths) {
|
||||
|
||||
const licensePaths = new Set<string>()
|
||||
for (const i in licenses) {
|
||||
licensePaths.add(licenses[i].path)
|
||||
|
|
@ -141,7 +143,6 @@ export class DoesImageExist extends DesugaringStep<string> {
|
|||
}
|
||||
return new DoesImageExist(DoesImageExist.licensePaths, checkExistsSync, ignore)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class OverrideShadowingCheck extends DesugaringStep<ThemeConfigJson> {
|
||||
|
|
@ -906,7 +907,10 @@ export class ValidateFilter extends DesugaringStep<string | FilterConfigJson> {
|
|||
super("ValidateFilter", "Detect common errors in the filters")
|
||||
}
|
||||
|
||||
convert(filter: string | FilterConfigJson, context: ConversionContext): string | FilterConfigJson {
|
||||
convert(
|
||||
filter: string | FilterConfigJson,
|
||||
context: ConversionContext
|
||||
): string | FilterConfigJson {
|
||||
if (typeof filter === "string") {
|
||||
// Calling another filter, we skip
|
||||
return filter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue