nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 518906ec853c7a4285b4186efca779df94b774ed
parent 969f51e06b80ec56adf3b9e43d4e21e92ac937d4
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sun, 26 Jan 2020 01:15:11 +0100

fix lint errors (space-unary-ops)

Diffstat:
Msrc/lib/leaflet.fixes/fixWorldCopyJump.js | 2+-
Msrc/lib/leaflet.hashState/hashState.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/leaflet.fixes/fixWorldCopyJump.js b/src/lib/leaflet.fixes/fixWorldCopyJump.js @@ -13,7 +13,7 @@ function shiftLongitudeToTarget(lng, targetLng) { if (Math.abs(lng + 360 - targetLng) < Math.abs(lng - targetLng)) { shift = 360; } else if (Math.abs(lng - 360 - targetLng) < Math.abs(lng - targetLng)) { - shift = - 360; + shift = -360; } return shift; } diff --git a/src/lib/leaflet.hashState/hashState.js b/src/lib/leaflet.hashState/hashState.js @@ -95,7 +95,7 @@ const hashState = { } for (let key of Object.keys(this._state)) { - if (! (key in newState)) { + if (!(key in newState)) { changedKeys[key] = 1; } }