From 75d873a00efadc892e86872f2ace023370e46d35 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Mon, 4 Dec 2017 16:29:07 -0800 Subject: [PATCH] remove null/undefined to empty string --- lib/utils/html-fn.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/utils/html-fn.html b/lib/utils/html-fn.html index dcaf54bd03..d84110760d 100644 --- a/lib/utils/html-fn.html +++ b/lib/utils/html-fn.html @@ -17,9 +17,7 @@ * @return {string} HTML stringified form of `obj` */ function htmlValue(value) { - if (value === null || value === undefined) { - return ''; - } else if (value instanceof HTMLTemplateElement) { + if (value instanceof HTMLTemplateElement) { return /** @type {!HTMLTemplateElement} */(value).innerHTML; } else { return String(value);