Skip to content

Commit 1c691a1

Browse files
committed
http/headers: make luacheck happy
A `_` prefix on a variable usually indicates that it is unused
1 parent 169c1a7 commit 1c691a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http/headers.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ function headers_mt:__tostring()
7878
return string.format("http.headers{%d headers}", self._n)
7979
end
8080

81-
local function add_to_index(_index, name, i)
82-
local dex = _index[name]
81+
local function add_to_index(index, name, i)
82+
local dex = index[name]
8383
if dex == nil then
8484
dex = {n=1, i}
85-
_index[name] = dex
85+
index[name] = dex
8686
else
8787
local n = dex.n + 1
8888
dex[n] = i

0 commit comments

Comments
 (0)