Merge pull request #4060 from fredj/unnecessary_cast
Remove unnecessary cast
This commit is contained in:
@@ -214,13 +214,10 @@ ol.style.StyleFunction;
|
||||
* @return {ol.style.StyleFunction} A style function.
|
||||
*/
|
||||
ol.style.createStyleFunction = function(obj) {
|
||||
/**
|
||||
* @type {ol.style.StyleFunction}
|
||||
*/
|
||||
var styleFunction;
|
||||
|
||||
if (goog.isFunction(obj)) {
|
||||
styleFunction = /** @type {ol.style.StyleFunction} */ (obj);
|
||||
styleFunction = obj;
|
||||
} else {
|
||||
/**
|
||||
* @type {Array.<ol.style.Style>}
|
||||
|
||||
Reference in New Issue
Block a user