incorporated suggestions

This commit is contained in:
Jakob Gerstmayer
2019-10-28 12:51:40 +01:00
parent 37cbb8e43e
commit bc34fe5b71
+2 -3
View File
@@ -30,10 +30,9 @@ class Bbox extends Filter {
/** /**
* @type {import("../../extent.js").Extent} * @type {import("../../extent.js").Extent}
*/ */
if (extent.length === 4) {
this.extent = extent; this.extent = extent;
} else { if (extent.length !== 4) {
throw new Error('Error: Extent should look like this: [minx, miny, maxx, maxy]'); throw new Error('Expected an extent with four values ([minX, minY, maxX, maxY])');
} }
/** /**