Skip to content

Commit

Permalink
refactor: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xuruidong committed Mar 7, 2024
1 parent 551c994 commit 687ba54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ngx/ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,10 @@ function _M.get_client_random(outlen)
local out = get_string_buf(outlen)
local sizep = get_size_ptr()
sizep[0] = outlen
local ret_len = false

local rc = ngx_lua_ffi_ssl_client_random(r, out, sizep, errmsg)
if rc == FFI_OK then
if out_len == 0 then
if outlen == 0 then
return tonumber(sizep[0])
end

Expand Down

0 comments on commit 687ba54

Please sign in to comment.