From 8bfa0f7ae94f1e4e3ad59cae4682c5e6c4b39bc7 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 16 Dec 2013 13:53:55 +0100 Subject: [PATCH] Truthy check is enough --- src/ol/structs/rbush.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];