Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Jan 15, 2025
1 parent 5c732c3 commit 022f40f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apisix/plugins/basic-auth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ local function find_consumer(ctx)
return nil, nil, "Invalid authorization in request"
end

local cur_consumer, consumer_conf, err = consumer.find_consumer(plugin_name, "username", username)
local cur_consumer, consumer_conf, err = consumer.find_consumer(plugin_name,
"username", username)
if not cur_consumer then
err = "failed to find user: " .. (err or "invalid user")
if auth_utils.is_running_under_multi_auth(ctx) then
Expand Down

0 comments on commit 022f40f

Please sign in to comment.