Skip to content

Commit 076f5fa

Browse files
committed
fix linter issues
1 parent 44fbd79 commit 076f5fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apisix/plugins/opa/helper.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ local function get_body_for_request()
3939
if err ~= nil then
4040
error("opa - failed to get request body: ", err)
4141
end
42-
if body == nil then
42+
if original_body == nil then
4343
return nil
4444
end
4545
-- decode to prevent double encoded json objects
46-
body, err = core.json.decode(original_body)
46+
local body, err = core.json.decode(original_body)
4747
if err ~= nil then
4848
-- if its not json, the body can just be added
4949
body = original_body

0 commit comments

Comments
 (0)