Skip to content

Commit

Permalink
Avoid one-line if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Nov 14, 2018
1 parent d29be0e commit 2a188b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ class UBlacklist {
}

setupEntry({ base, pageUrl, actionParent, actionTag, actionClass, display }) {
if (base.hasAttribute('data-ub-page-url')) { return; }
if (base.hasAttribute('data-ub-page-url')) {
return;
}

base.setAttribute('data-ub-page-url', pageUrl);
base.setAttribute('data-ub-display', display);
Expand Down

0 comments on commit 2a188b1

Please sign in to comment.