Truthy check is enough

This commit is contained in:
ahocevar
2013-12-16 13:53:55 +01:00
parent 67d2cddb84
commit 8bfa0f7ae9

View File

@@ -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];