From ec1a87443d99c8f7ed71b433d3438437f40bc825 Mon Sep 17 00:00:00 2001 From: Mihai CAZACU Date: Thu, 6 Aug 2020 20:09:27 +0300 Subject: [PATCH] format code --- src/ol/control/Attribution.js | 4 ++-- src/ol/control/Zoom.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/control/Attribution.js b/src/ol/control/Attribution.js index 9405c58193..ddc6146f76 100644 --- a/src/ol/control/Attribution.js +++ b/src/ol/control/Attribution.js @@ -96,7 +96,7 @@ class Attribution extends Control { const expandClassName = options.expandClassName !== undefined ? options.expandClassName - : (className + '-expand'); + : className + '-expand'; const collapseLabel = options.collapseLabel !== undefined ? options.collapseLabel : '\u00BB'; @@ -104,7 +104,7 @@ class Attribution extends Control { const collapseClassName = options.collapseClassName !== undefined ? options.collapseClassName - : (className + '-collpase'); + : className + '-collpase'; if (typeof collapseLabel === 'string') { /** diff --git a/src/ol/control/Zoom.js b/src/ol/control/Zoom.js index 886dca9e86..27a37db573 100644 --- a/src/ol/control/Zoom.js +++ b/src/ol/control/Zoom.js @@ -51,11 +51,11 @@ class Zoom extends Control { const zoomInClassName = options.zoomInClassName !== undefined ? options.zoomInClassName - : (className + '-in'); + : className + '-in'; const zoomOutClassName = options.zoomOutClassName !== undefined ? options.zoomOutClassName - : (className + '-out'); + : className + '-out'; const zoomInLabel = options.zoomInLabel !== undefined ? options.zoomInLabel : '+';