Remove unnecessary type cast
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user