Skip to content

Commit 4862fdb

Browse files
committed
fix: comment
1 parent a271ff4 commit 4862fdb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

apisix/admin/standalone.lua

+3-6
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ local function update(ctx)
101101
end
102102
if err then
103103
core.log.error("invalid request body: ", req_body, " err: ", err)
104-
core.response.exit(400, {error_msg = "invalid request body: " .. err,
105-
req_body = req_body})
104+
core.response.exit(400, {error_msg = "invalid request body: " .. err})
106105
end
107106
req_body = data
108107

@@ -123,16 +122,14 @@ local function update(ctx)
123122
valid, err = check_schema(obj.item_schema, item)
124123
if not valid then
125124
core.log.error(err_prefix, err)
126-
core.response.exit(400, {error_msg = err_prefix .. err,
127-
req_body = req_body})
125+
core.response.exit(400, {error_msg = err_prefix .. err})
128126
end
129127
end
130128
if item_checker then
131129
valid, err = item_checker(item)
132130
if not valid then
133131
core.log.error(err_prefix, err)
134-
core.response.exit(400, {error_msg = err_prefix .. err,
135-
req_body = req_body})
132+
core.response.exit(400, {error_msg = err_prefix .. err})
136133
end
137134
end
138135
table_insert(apisix_yaml[key], item)

0 commit comments

Comments
 (0)