Skip to content

Commit

Permalink
Remove redundant hasOwnProperty check (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle authored and nicjansma committed Apr 13, 2018
1 parent 6ec6483 commit 5dadf05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion dist/resourcetiming-compression.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions src/resourcetiming-compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@
urlFixed = urlFixed.replace(this.xssBreakWords[i], "$1" + XSS_BREAK_DELIM + "$2");
}

if (!entries.hasOwnProperty(url)) {
continue;
}

value = entries[url];
letters = urlFixed.split("");
cur = trie;
Expand Down

0 comments on commit 5dadf05

Please sign in to comment.