Remove unnecessary cast

Found by the latest version of closure-compiler (v20150729)
This commit is contained in:
Frederic Junod
2015-08-31 11:43:30 +02:00
parent 965a27b115
commit 529f869803
6 changed files with 7 additions and 18 deletions
+1 -4
View File
@@ -302,13 +302,10 @@ ol.FeatureStyleFunction;
* @return {ol.FeatureStyleFunction} A style function.
*/
ol.Feature.createStyleFunction = function(obj) {
/**
* @type {ol.FeatureStyleFunction}
*/
var styleFunction;
if (goog.isFunction(obj)) {
styleFunction = /** @type {ol.FeatureStyleFunction} */ (obj);
styleFunction = obj;
} else {
/**
* @type {Array.<ol.style.Style>}