From 6f43fffb4eca76246a3f458b973a7aada84c1488 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Tue, 24 Oct 2017 23:12:55 +0300 Subject: util.js: remove unnecessary conditional --- ext/bg/js/util.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ext/bg') 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; -- cgit v1.2.3