From 306a67fca1fc17358635cf863fc42065e06b0eb0 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 14 Sep 2022 13:39:52 +0200 Subject: [PATCH] Formatting --- Logic/Osm/Actions/DeleteAction.ts | 32 ++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/Logic/Osm/Actions/DeleteAction.ts b/Logic/Osm/Actions/DeleteAction.ts index 2e0ae7fa0..1e359a023 100644 --- a/Logic/Osm/Actions/DeleteAction.ts +++ b/Logic/Osm/Actions/DeleteAction.ts @@ -1,12 +1,12 @@ -import {OsmObject} from "../OsmObject" +import { OsmObject } from "../OsmObject" import OsmChangeAction from "./OsmChangeAction" -import {Changes} from "../Changes" -import {ChangeDescription} from "./ChangeDescription" +import { Changes } from "../Changes" +import { ChangeDescription } from "./ChangeDescription" import ChangeTagAction from "./ChangeTagAction" -import {TagsFilter} from "../../Tags/TagsFilter" -import {And} from "../../Tags/And" -import {Tag} from "../../Tags/Tag" -import {Utils} from "../../../Utils"; +import { TagsFilter } from "../../Tags/TagsFilter" +import { And } from "../../Tags/And" +import { Tag } from "../../Tags/Tag" +import { Utils } from "../../../Utils" export default class DeleteAction extends OsmChangeAction { private readonly _softDeletionTags: TagsFilter @@ -30,17 +30,19 @@ export default class DeleteAction extends OsmChangeAction { super(id, true) this._id = id this._hardDelete = hardDelete - this.meta = {...meta, changeType: "deletion"} + this.meta = { ...meta, changeType: "deletion" } if (softDeletionTags?.usedKeys()?.indexOf("fixme") >= 0) { this._softDeletionTags = softDeletionTags } else { - this._softDeletionTags = new And(Utils.NoNull([ - softDeletionTags, - new Tag( - "fixme", - `A mapcomplete user marked this feature to be deleted (${meta.specialMotivation})` - ), - ])) + this._softDeletionTags = new And( + Utils.NoNull([ + softDeletionTags, + new Tag( + "fixme", + `A mapcomplete user marked this feature to be deleted (${meta.specialMotivation})` + ), + ]) + ) } }