Skip to content

Commit

Permalink
explicit nullable query
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Apr 21, 2017
1 parent 617075d commit dedc2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/report/v2/renderer/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class DOM {
* @throws {Error}
*/
cloneTemplate(selector, context) {
const template = /** @type {HTMLTemplateElement} */ (context.querySelector(selector));
const template = /** @type {?HTMLTemplateElement} */ (context.querySelector(selector));
if (!template) {
throw new Error(`Template not found: template${selector}`);
}
Expand Down

0 comments on commit dedc2e2

Please sign in to comment.