Remove unnecessary cast
Found by the latest version of closure-compiler (v20150729)
This commit is contained in:
+1
-4
@@ -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>}
|
||||
|
||||
Reference in New Issue
Block a user