summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-24 23:12:55 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-24 23:12:55 +0300
commit6f43fffb4eca76246a3f458b973a7aada84c1488 (patch)
tree94d90594ee2fe863bab6a03c56201a46e513d05b /ext/bg/js
parent73d542547b181b25ece25bb342ea5c68c6b6a267 (diff)
util.js: remove unnecessary conditional
Diffstat (limited to 'ext/bg/js')
-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;