Skip to content

Commit 66236cc

Browse files
committed
Use ipairs instead of i=1,#plain loop
1 parent c18f0c7 commit 66236cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deps/secure-socket/biowrap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ return function (ctx, isServer, socket, handshakeComplete, servername, buffer)
111111
-- When requested to write plain data, encrypt it and write to socket
112112
function ssocket.write(_, plain, callback)
113113
if type(plain) == "table" then
114-
for i=1, #plain do
114+
for i in ipairs(plain) do
115115
ssl:write(plain[i])
116116
end
117117
else

0 commit comments

Comments
 (0)