Remove unnecessary cast
See https://github.com/google/closure-library/commit/4977f3607b25f369b3949db2e4bcfaecdb9d6063
This commit is contained in:
@@ -209,8 +209,7 @@ ol.color.fromStringInternal_ = function(s) {
|
|||||||
|
|
||||||
var isHex = false;
|
var isHex = false;
|
||||||
if (ol.ENABLE_NAMED_COLORS && goog.color.names.hasOwnProperty(s)) {
|
if (ol.ENABLE_NAMED_COLORS && goog.color.names.hasOwnProperty(s)) {
|
||||||
// goog.color.names does not have a type declaration, so add a typecast
|
s = goog.color.names[s];
|
||||||
s = /** @type {string} */ (goog.color.names[s]);
|
|
||||||
isHex = true;
|
isHex = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user