Skip to content

Commit fd76420

Browse files
committed
Removed redundant table and helper function 'h'.
1 parent 51a7ec8 commit fd76420

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

core/S256SUM.LUA

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,14 @@ function sha256_file(file)
140140
TF(c, H)
141141
end
142142

143-
local function h(x)
144-
return string.format("%08x", x)
145-
end
146-
147143
-- l = Final hash string
148-
l = {}
144+
l = ""
149145

150146
for _, v in ipairs(H) do
151-
table.insert(l, h(v))
147+
l = l .. string.format("%08x", v)
152148
end
153149

154-
return table.concat(l)
150+
return l
155151
end
156152

157153
if LIB then

0 commit comments

Comments
 (0)