Skip to content

Commit

Permalink
remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lazylier committed Jun 11, 2024
1 parent 72add45 commit e997b53
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mods/ctf/ctf_modebase/ranking_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,10 @@ minetest.register_chatcommand("donate", {

names = names .. pname

n = next(pnames, pname)
if n then
pname = next(pnames, pname)
if pname then
names = names .. ", "
end
pname = n
end

if pcount > 2 then
Expand Down

0 comments on commit e997b53

Please sign in to comment.