Remove unnecessary type cast

This commit is contained in:
Frederic Junod
2019-02-13 11:35:46 +01:00
parent b71d7773d3
commit c0a860a31f
5 changed files with 7 additions and 10 deletions
+1 -3
View File
@@ -42,9 +42,7 @@ class IconImage extends EventTarget {
* @private
* @type {HTMLCanvasElement}
*/
this.canvas_ = color ?
/** @type {HTMLCanvasElement} */ (document.createElement('canvas')) :
null;
this.canvas_ = color ? document.createElement('canvas') : null;
/**
* @private