From 2c796f7462036cc1b5be7c107ffb09d845904bf1 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 9 Jul 2024 13:48:02 +0200 Subject: [PATCH] Linting errors --- src/Logic/Osm/Changes.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Logic/Osm/Changes.ts b/src/Logic/Osm/Changes.ts index 69b818a03..2ca478825 100644 --- a/src/Logic/Osm/Changes.ts +++ b/src/Logic/Osm/Changes.ts @@ -549,7 +549,6 @@ export class Changes { pending: ChangeDescription[], openChangeset: UIEventSource, ): Promise { - const self = this const neededIds = Changes.GetNeededIds(pending) // We _do not_ pass in the Changes object itself - we want the data from OSM directly in order to apply the changes const downloader = new OsmObjectDownloader(this.backend, undefined) @@ -602,7 +601,7 @@ export class Changes { const distances = Utils.NoNull(pending.map((descr) => descr.meta.distanceToObject)) distances.sort((a, b) => a - b) - const perBinCount = Constants.distanceToChangeObjectBins.map((_) => 0) + const perBinCount = Constants.distanceToChangeObjectBins.map(() => 0) let j = 0 const maxDistances = Constants.distanceToChangeObjectBins @@ -680,7 +679,7 @@ export class Changes { newObjects: OsmObject[] modifiedObjects: OsmObject[] deletedObjects: OsmObject[] - } = self.CreateChangesetObjects(toUpload, objects) + } = this.CreateChangesetObjects(toUpload, objects) return Changes.createChangesetFor("" + csId, changes) },