Improve some null types to prepare for strictNullChecks
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ export function replaceNode(newNode, oldNode) {
|
||||
|
||||
/**
|
||||
* @param {Node} node The node to remove.
|
||||
* @return {Node} The node that was removed or null.
|
||||
* @return {Node|null} The node that was removed or null.
|
||||
*/
|
||||
export function removeNode(node) {
|
||||
return node && node.parentNode ? node.parentNode.removeChild(node) : null;
|
||||
|
||||
Reference in New Issue
Block a user