Merge pull request #4060 from fredj/unnecessary_cast

Remove unnecessary cast
This commit is contained in:
Frédéric Junod
2015-09-07 09:33:03 +02:00
6 changed files with 7 additions and 18 deletions

View File

@@ -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>}