]> git.e2factory.org Git - e2factory.git/commitdiff
project: no need for duplicate checks
authorTobias Ulmer <tu@emlix.com>
Wed, 9 Nov 2016 18:05:15 +0000 (19:05 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/project.lua

index 1fd3b9ffb33e3c6827dc2dfb42839cfa46cf1d03..5561ca23c47dae800bef9880b8632abc27a6c4f5 100644 (file)
@@ -316,12 +316,8 @@ function project.projid(info)
     end
 
     for _,entry in ipairs(extensions) do
-        if type(entry.ref) == "string" then
-            hash.hash_append(hc, entry.ref)
-        end
-        if type(entry.name) == "string" then
-            hash.hash_append(hc, entry.name)
-        end
+        hash.hash_append(hc, entry.ref)
+        hash.hash_append(hc, entry.name)
     end
 
     _projid_cache = hash.hash_finish(hc)