Remove unnecessary cast

See 4977f3607b
This commit is contained in:
Frederic Junod
2015-11-17 10:37:54 +01:00
parent 50c28cdd60
commit 10ed2997d8

View File

@@ -209,8 +209,7 @@ ol.color.fromStringInternal_ = function(s) {
var isHex = false;
if (ol.ENABLE_NAMED_COLORS && goog.color.names.hasOwnProperty(s)) {
// goog.color.names does not have a type declaration, so add a typecast
s = /** @type {string} */ (goog.color.names[s]);
s = goog.color.names[s];
isHex = true;
}