diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-24 23:12:55 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-24 23:12:55 +0300 |
commit | 6f43fffb4eca76246a3f458b973a7aada84c1488 (patch) | |
tree | 94d90594ee2fe863bab6a03c56201a46e513d05b /ext/bg/js/util.js | |
parent | 73d542547b181b25ece25bb342ea5c68c6b6a267 (diff) |
util.js: remove unnecessary conditional
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r-- | ext/bg/js/util.js | 4 |
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; |