Skip to content

Commit

Permalink
perf: remove NYIs to be more JIT-friendly (#79)
Browse files Browse the repository at this point in the history
KAG-2653
  • Loading branch information
ADD-SP authored Mar 20, 2024
1 parent d1f8aaf commit 4e0133a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lualib/resty/kong/var.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ local function var_get_by_index(index)
value_len, errmsg)

if rc == NGX_OK then
return ffi_str(value_ptr[0], value_len[0])
local value = ffi_str(value_ptr[0], value_len[0])
return value
end

if rc == NGX_DECLINED then
Expand Down

0 comments on commit 4e0133a

Please sign in to comment.