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 : '+';