Skip to content

Commit 7355892

Browse files
committed
fix test
1 parent fec1b1a commit 7355892

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

apisix/admin/standalone.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ local function validate_configuration(req_body, collect_all_errors)
171171
local new_conf_version = req_body[conf_version_key]
172172
if new_conf_version and type(new_conf_version) ~= "number" then
173173
if not collect_all_errors then
174-
return false, config_version_key .. " must be a number"
174+
return false, conf_version_key .. " must be a number"
175175
end
176176
validation_results.valid = false
177177
table_insert(validation_results.errors, {
@@ -309,11 +309,10 @@ local function update(ctx)
309309

310310
local config, err = get_config()
311311
if err and err ~= NOT_FOUND_ERR then
312-
core.log.error("failed to get config from shared dict: ", err)
313-
return core.response.exit(500, {
314-
error_msg = "failed to get config from shared dict: " .. err
315-
})
316-
end
312+
core.log.error("failed to get config from shared dict: ", err)
313+
return core.response.exit(500, {
314+
error_msg = "failed to get config from shared dict: " .. err
315+
})
317316
end
318317

319318
-- if the client passes in the same digest, the configuration is not updated

0 commit comments

Comments
 (0)