From 10ed2997d88245ad4aaa988d7dac01b2d48b6cb4 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 17 Nov 2015 10:37:54 +0100 Subject: [PATCH] Remove unnecessary cast See https://github.com/google/closure-library/commit/4977f3607b25f369b3949db2e4bcfaecdb9d6063 --- src/ol/color/color.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ol/color/color.js b/src/ol/color/color.js index 519f3a45f6..81225c3bc6 100644 --- a/src/ol/color/color.js +++ b/src/ol/color/color.js @@ -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; }