Skip to content

Commit

Permalink
refactor: remove deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
xuruidong committed Jan 3, 2025
1 parent d6971d0 commit a5d1d13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apisix/consumer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ do
})

local function fill_consumer_secret(consumer)
local new_consumer = core.table.clone(consumer)
new_consumer.auth_conf = secret.fetch_secrets(new_consumer.auth_conf, false)
return new_consumer
consumer.auth_conf = secret.fetch_secrets(consumer.auth_conf, false)
return consumer
end


Expand Down

0 comments on commit a5d1d13

Please sign in to comment.