3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 11:12:42 +01: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 {