aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/util.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 60f6452b..091137ed 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -55,10 +55,6 @@ function utilSetDifference(setA, setB) {
function utilStringHashCode(string) {
let hashCode = 0;
- if (string.length === 0) {
- return hashCode;
- }
-
for (let i = 0, charCode = string.charCodeAt(i); i < string.length; charCode = string.charCodeAt(++i)) {
hashCode = ((hashCode << 5) - hashCode) + charCode;
hashCode |= 0;