Fix eslint errors

This commit is contained in:
Otto Pellinen
2019-09-13 13:11:19 +03:00
committed by Olivier Guyot
parent 00261dff54
commit 25a5e83910
2 changed files with 11 additions and 11 deletions

View File

@@ -911,9 +911,9 @@ class Draw extends PointerInteraction {
* @api
*/
extend(feature) {
const lineStringGeometry = feature.getGeometry();;
const lineStringGeometry = feature.getGeometry();
const extendCoordinates = lineStringGeometry.getCoordinates();
const ending = extendCoordinates[extendCoordinates.length-1].slice();
const ending = extendCoordinates[extendCoordinates.length - 1].slice();
const mode = this.mode_;
let coordinates = [];
@@ -928,7 +928,7 @@ class Draw extends PointerInteraction {
// (1) Remove last coordinate, (2) extend coordinate list and (3) clone last coordinate
coordinates.pop();
Array.prototype.push.apply(coordinates, extendCoordinates);
coordinates.push(ending)
coordinates.push(ending);
// Update geometry and sketch line
this.geometryFunction_(this.sketchCoords_, this.sketchFeature_.getGeometry());