Skip to content

Commit

Permalink
style(plugins/bk-traffic-label.lua): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Nov 6, 2024
1 parent e0d9c90 commit 3d76800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apisix/plugins/bk-traffic-label.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function _M.check_schema(conf)
for _, rule in ipairs(conf.rules) do
if rule.match then
-- Validate the match expression
local _, err = expr.new(rule.match)
if err then
local _, err2 = expr.new(rule.match)
if err2 then
core.log.error("failed to validate the 'match' expression: ", err)
return false, "failed to validate the 'match' expression: " .. err
end
Expand Down

0 comments on commit 3d76800

Please sign in to comment.