Skip to content

Commit a9bd821

Browse files
committed
Removed unused garbage.
1 parent 95b81e2 commit a9bd821

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/resty/upload.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Copyright (C) Yichun Zhang (agentzh)
22

33

4-
local sub = string.sub
4+
-- local sub = string.sub
55
local req_socket = ngx.req.socket
66
local match = string.match
77
local setmetatable = setmetatable
@@ -207,7 +207,7 @@ end
207207

208208

209209
function _M.read(self)
210-
local size = self.size
210+
-- local size = self.size
211211

212212
local handler = state_handlers[self.state]
213213
if handler then
@@ -228,7 +228,7 @@ local function read_preamble(self)
228228
local read2boundary = self.read2boundary
229229

230230
while true do
231-
local preamble, err = read2boundary(size)
231+
local preamble = read2boundary(size)
232232
if not preamble then
233233
break
234234
end

0 commit comments

Comments
 (0)