Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianaixba committed Sep 14, 2020
1 parent cda6169 commit bb4ab94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ function findPasswordInputsWithPreventedPaste() {
new ClipboardEvent('paste', {cancelable: true})
)
)
.map(passwordInput => ({
.map(passwordInput => (
// @ts-expect-error - getNodeDetails put into scope via stringification
...getNodeDetails(passwordInput),
}));
getNodeDetails(passwordInput)
));
}

class PasswordInputsWithPreventedPaste extends Gatherer {
Expand Down
6 changes: 2 additions & 4 deletions lighthouse-core/gather/gatherers/trace-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ function getNodeDetailsData() {
const elem = this.nodeType === document.ELEMENT_NODE ? this : this.parentElement; // eslint-disable-line no-undef
let traceElement;
if (elem) {
traceElement = {
// @ts-expect-error - getNodeDetails put into scope via stringification
...getNodeDetails(elem),
};
// @ts-expect-error - getNodeDetails put into scope via stringification
traceElement = getNodeDetails(elem);
}
return traceElement;
}
Expand Down

0 comments on commit bb4ab94

Please sign in to comment.