From bc34fe5b71b7375a3aac9b1d66d6ce0f365d4146 Mon Sep 17 00:00:00 2001 From: Jakob Gerstmayer Date: Mon, 28 Oct 2019 12:51:40 +0100 Subject: [PATCH] incorporated suggestions --- src/ol/format/filter/Bbox.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ol/format/filter/Bbox.js b/src/ol/format/filter/Bbox.js index d45a20982a..f95f81d0e5 100644 --- a/src/ol/format/filter/Bbox.js +++ b/src/ol/format/filter/Bbox.js @@ -30,10 +30,9 @@ class Bbox extends Filter { /** * @type {import("../../extent.js").Extent} */ - if (extent.length === 4) { this.extent = extent; - } else { - throw new Error('Error: Extent should look like this: [minx, miny, maxx, maxy]'); + if (extent.length !== 4) { + throw new Error('Expected an extent with four values ([minX, minY, maxX, maxY])'); } /**