Skip to content

Commit

Permalink
Remove redundant variable in LikeCommand execution
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Jul 19, 2024
1 parent 723bb7a commit 93301a2
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class LikeCommand implements SimpleCommand {

@Override
public void execute(Invocation invocation) {
var source = invocation.source();
if (!(invocation.source() instanceof Player player))
plugin.bundle().sendMessage(invocation.source(), "command.sender");
else new Thread(() -> {
Expand Down

0 comments on commit 93301a2

Please sign in to comment.