Skip to content

Commit

Permalink
cleanup the code #1674
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Nov 6, 2023
1 parent c73bad5 commit 3b72fc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

// check inline element: without text in the same line
const status = RPTUtil.getInlineStatus(ruleContext);
if (status == null) return null;
if (status === null) return null;
if (status.inline) {
if (status.text) {
if (status.violation == null)
Expand Down Expand Up @@ -104,7 +104,7 @@
zindex = "0";

var elems = doc.querySelectorAll('body *:not(script)');
if (!elems || elems.length == 0)
if (!elems || elems.length === 0)
return;

const mapper : DOMMapper = new DOMMapper();
Expand Down

0 comments on commit 3b72fc8

Please sign in to comment.