diff --git a/src/ol/structs/rbush.js b/src/ol/structs/rbush.js index fe8c8e4153..2072aaf96b 100644 --- a/src/ol/structs/rbush.js +++ b/src/ol/structs/rbush.js @@ -637,7 +637,7 @@ ol.structs.RBush.prototype.remove_ = function(extent, value) { } else { childrenDone = true; } - if (childrenDone === true) { + if (childrenDone) { var lastPathIndex = path.length - 1; node = path[lastPathIndex]; index = ++indexes[lastPathIndex];