shorten hook names

This commit is contained in:
Oliver Gorwits
2017-09-06 18:30:43 +01:00
parent a59c23de79
commit 1f9740c0e2
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ register 'register_worker' => sub {
};
my $primary = ($workerconf->{primary} ? '_primary' : '');
my $hook = 'nd2worker_'. $action .'_'. $workerconf->{phase} . $primary;
my $hook = 'nd2_'. $action .'_'. $workerconf->{phase} . $primary;
my $store = Dancer::Factory::Hook->instance();
if (not $store->hook_is_registered($hook)) {