From e27e37190e549cac1e964ba3dbb5f7bea585fd19 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 20 Sep 2020 10:01:03 +0200 Subject: add explicit empty return statements to promise handlers --- lib/Travelynx.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index f621139..4f58f57 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -962,6 +962,7 @@ sub startup { if ($callback) { &$callback(); } + return; } )->catch( sub { @@ -970,6 +971,7 @@ sub startup { if ($callback) { &$callback(); } + return; } )->wait; } @@ -1400,11 +1402,13 @@ sub startup { }, { user_id => $uid } ); + return; } )->catch( sub { my ($err) = @_; $self->app->log->warn("add_route_timestamps: $err"); + return; } )->wait; @@ -1487,6 +1491,7 @@ sub startup { { user_id => $uid } ); } + return; } )->catch( sub { @@ -1513,6 +1518,7 @@ sub startup { { data => JSON->new->encode($data) }, { user_id => $uid } ); + return; } )->catch( sub { @@ -1539,6 +1545,7 @@ sub startup { { data => JSON->new->encode($data) }, { user_id => $uid } ); + return; } )->catch( sub { -- cgit v1.2.3