3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

Commands: insignificant refactor to remove an extra line

This commit is contained in:
Pragmatic Software 2021-07-23 18:37:45 -07:00
parent 611cc00102
commit 1b15ba615b

View File

@ -76,8 +76,7 @@ sub register {
sub unregister {
my ($self, $name) = @_;
Carp::croak("Missing name parameter to Commands::unregister") if not defined $name;
$name = lc $name;
delete $self->{commands}->{$name};
delete $self->{commands}->{lc $name};
}
sub exists {