incorporated suggestions

This commit is contained in:
Jakob Gerstmayer
2019-10-28 12:51:40 +01:00
parent 37cbb8e43e
commit bc34fe5b71

View File

@@ -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])');
}
/**