Formatting

This commit is contained in:
Pieter Vander Vennet 2022-09-14 13:39:52 +02:00
parent f6fa8c9f9f
commit 306a67fca1

View file

@ -6,7 +6,7 @@ import ChangeTagAction from "./ChangeTagAction"
import { TagsFilter } from "../../Tags/TagsFilter"
import { And } from "../../Tags/And"
import { Tag } from "../../Tags/Tag"
import {Utils} from "../../../Utils";
import { Utils } from "../../../Utils"
export default class DeleteAction extends OsmChangeAction {
private readonly _softDeletionTags: TagsFilter
@ -34,13 +34,15 @@ export default class DeleteAction extends OsmChangeAction {
if (softDeletionTags?.usedKeys()?.indexOf("fixme") >= 0) {
this._softDeletionTags = softDeletionTags
} else {
this._softDeletionTags = new And(Utils.NoNull([
this._softDeletionTags = new And(
Utils.NoNull([
softDeletionTags,
new Tag(
"fixme",
`A mapcomplete user marked this feature to be deleted (${meta.specialMotivation})`
),
]))
])
)
}
}