Unify return statement

Only return the callback result if it is truthy,
otherwise return undefined.
This commit is contained in:
tsauerwein
2015-01-08 15:11:38 +01:00
parent 35c58b3b0e
commit 25612f1af2
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ ol.renderer.Map.prototype.hasFeatureAtPixel =
var hasFeature = this.forEachFeatureAtPixel(
coordinate, frameState, goog.functions.TRUE, this, layerFilter, thisArg);
return goog.isDef(hasFeature) ? hasFeature : false;
return goog.isDef(hasFeature);
};