Skip to content

Commit

Permalink
remove null/undefined to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Dec 5, 2017
1 parent d5070bb commit 75d873a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/utils/html-fn.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 75d873a

Please sign in to comment.