mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-12 11:55:28 +08:00
chore: remove redundant semicolons (#6581)
This commit is contained in:
parent
b8495f81a3
commit
530fb4d62c
@ -153,7 +153,7 @@ function _M.patch(id, conf, sub_path)
|
||||
end
|
||||
utils.inject_timestamp(node_value, nil, true)
|
||||
else
|
||||
node_value = core.table.merge(node_value, conf);
|
||||
node_value = core.table.merge(node_value, conf)
|
||||
utils.inject_timestamp(node_value, nil, conf)
|
||||
end
|
||||
|
||||
|
@ -170,7 +170,7 @@ function _M.patch(id, conf, sub_path)
|
||||
end
|
||||
utils.inject_timestamp(node_value, nil, true)
|
||||
else
|
||||
node_value = core.table.merge(node_value, conf);
|
||||
node_value = core.table.merge(node_value, conf)
|
||||
utils.inject_timestamp(node_value, nil, conf)
|
||||
end
|
||||
|
||||
|
@ -285,7 +285,7 @@ function _M.patch(id, conf, sub_path, args)
|
||||
end
|
||||
utils.inject_timestamp(node_value, nil, true)
|
||||
else
|
||||
node_value = core.table.merge(node_value, conf);
|
||||
node_value = core.table.merge(node_value, conf)
|
||||
utils.inject_timestamp(node_value, nil, conf)
|
||||
end
|
||||
|
||||
|
@ -238,7 +238,7 @@ function _M.patch(id, conf, sub_path)
|
||||
end
|
||||
utils.inject_timestamp(node_value, nil, true)
|
||||
else
|
||||
node_value = core.table.merge(node_value, conf);
|
||||
node_value = core.table.merge(node_value, conf)
|
||||
utils.inject_timestamp(node_value, nil, conf)
|
||||
end
|
||||
|
||||
|
@ -215,7 +215,7 @@ function _M.patch(id, conf, sub_path)
|
||||
end
|
||||
end
|
||||
|
||||
node_value = core.table.merge(node_value, conf);
|
||||
node_value = core.table.merge(node_value, conf)
|
||||
utils.inject_timestamp(node_value, nil, conf)
|
||||
end
|
||||
|
||||
|
@ -204,7 +204,7 @@ function _M.patch(id, conf, sub_path)
|
||||
end
|
||||
utils.inject_timestamp(new_value, nil, true)
|
||||
else
|
||||
new_value = core.table.merge(new_value, conf);
|
||||
new_value = core.table.merge(new_value, conf)
|
||||
utils.inject_timestamp(new_value, nil, conf)
|
||||
end
|
||||
|
||||
|
@ -43,7 +43,7 @@ local function fetch_chash_hash_key(ctx, upstream)
|
||||
chash_key = ctx.var["cookie_" .. key]
|
||||
elseif hash_on == "vars_combinations" then
|
||||
local err, n_resolved
|
||||
chash_key, err, n_resolved = core.utils.resolve_var(key, ctx.var);
|
||||
chash_key, err, n_resolved = core.utils.resolve_var(key, ctx.var)
|
||||
if err then
|
||||
core.log.error("could not resolve vars in ", key, " error: ", err)
|
||||
end
|
||||
|
@ -51,7 +51,7 @@ function _M.increase(conf, ctx)
|
||||
local key
|
||||
if conf.key_type == "var_combination" then
|
||||
local err, n_resolved
|
||||
key, err, n_resolved = core.utils.resolve_var(conf_key, ctx.var);
|
||||
key, err, n_resolved = core.utils.resolve_var(conf_key, ctx.var)
|
||||
if err then
|
||||
core.log.error("could not resolve vars in ", conf_key, " error: ", err)
|
||||
end
|
||||
|
@ -222,7 +222,7 @@ function _M.access(conf, ctx)
|
||||
local key
|
||||
if conf.key_type == "var_combination" then
|
||||
local err, n_resolved
|
||||
key, err, n_resolved = core.utils.resolve_var(conf_key, ctx.var);
|
||||
key, err, n_resolved = core.utils.resolve_var(conf_key, ctx.var)
|
||||
if err then
|
||||
core.log.error("could not resolve vars in ", conf_key, " error: ", err)
|
||||
end
|
||||
|
@ -88,7 +88,7 @@ function _M.access(conf, ctx)
|
||||
local key
|
||||
if conf.key_type == "var_combination" then
|
||||
local err, n_resolved
|
||||
key, err, n_resolved = core.utils.resolve_var(conf_key, ctx.var);
|
||||
key, err, n_resolved = core.utils.resolve_var(conf_key, ctx.var)
|
||||
if err then
|
||||
core.log.error("could not resolve vars in ", conf_key, " error: ", err)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user