nakarte

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

commit 6e4274015091db679c04d14955136778f9bb1018
parent ed54b6f9fcc657059a02dab86443c5bbb1b5ac04
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Tue,  3 Dec 2019 11:12:18 +0100

lint: remove unneeded semicolons

Diffstat:
Msrc/lib/CORSProxy/index.js | 2+-
Msrc/lib/leaflet.control.jnx/binary-stream.js | 24++++++++++++------------
Msrc/lib/leaflet.control.printPages/decoration.magnetic-meridians.js | 2+-
Msrc/lib/leaflet.control.printPages/decorations.js | 2+-
4 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/lib/CORSProxy/index.js b/src/lib/CORSProxy/index.js @@ -2,4 +2,4 @@ import config from '~/config'; export default function urlViaCorsProxy(url) { return config.CORSProxyUrl + url.replace(/^(https?):\/\//, '$1/'); -}; +} diff --git a/src/lib/leaflet.control.jnx/binary-stream.js b/src/lib/leaflet.control.jnx/binary-stream.js @@ -18,7 +18,7 @@ class BinStream { for (let i = 0; i < oldAr.length; i++) { newAr[i] = oldAr[i]; } - }; + } checkSize(size) { if (this._pos + size >= this.maxSize) { @@ -26,43 +26,43 @@ class BinStream { } const newPos = this._pos + size; this.size = (newPos > this.size) ? newPos : this.size; - }; + } writeUint8(value) { this.checkSize(1); this.dv.setUint8(this._pos, value); this._pos += 1; - }; + } writeInt8(value) { this.checkSize(1); this.dv.setInt8(this._pos, value); this._pos += 1; - }; + } writeInt16(value) { this.checkSize(2); this.dv.setInt16(this._pos, value, this.littlEndian); this._pos += 2; - }; + } writeUint16(value) { this.checkSize(2); this.dv.setUint16(this._pos, value, this.littlEndian); this._pos += 2; - }; + } writeInt32(value) { this.checkSize(4); this.dv.setInt32(this._pos, value, this.littlEndian); this._pos += 4; - }; + } writeUint32(value) { this.checkSize(4); this.dv.setUint32(this._pos, value, this.littlEndian); this._pos += 4; - }; + } writeString(s, zeroTerminated) { s = utf8.encode(s); @@ -72,19 +72,19 @@ class BinStream { if (zeroTerminated) { this.writeUint8(0); } - }; + } tell() { return this._pos; - }; + } seek(pos) { this._pos = pos; - }; + } getBuffer() { return this.dv.buffer.slice(0, this.size); - }; + } } export {BinStream} \ No newline at end of file diff --git a/src/lib/leaflet.control.printPages/decoration.magnetic-meridians.js b/src/lib/leaflet.control.printPages/decoration.magnetic-meridians.js @@ -25,7 +25,7 @@ class MagneticMeridians extends PrintStaticLayer { return function(pixel) { return L.CRS.EPSG3857.pointToLatLng(pixel.scaleBy(scale).add(origin), printOptions.zoom); } - }; + } _drawRaster(canvas, printOptions) { const toLatLng = this._makeCanvasToLatLngTransformer(printOptions); diff --git a/src/lib/leaflet.control.printPages/decorations.js b/src/lib/leaflet.control.printPages/decorations.js @@ -4,7 +4,7 @@ class PrintStaticLayer { cloneForPrint() { return this; - }; + } // printOptions = { // xhrOptions,