diff --git a/lib/Pear/LocalLoop.pm b/lib/Pear/LocalLoop.pm index c41371d..3576c48 100644 --- a/lib/Pear/LocalLoop.pm +++ b/lib/Pear/LocalLoop.pm @@ -50,7 +50,7 @@ sub startup { return $user->id; } } - return undef; + return; }, }); diff --git a/lib/Pear/LocalLoop/Controller/Api/Auth.pm b/lib/Pear/LocalLoop/Controller/Api/Auth.pm index d64bf09..41e3b1e 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Auth.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Auth.pm @@ -86,7 +86,7 @@ sub post_login { } elsif ( defined $user_result->organisation_id ) { $display_name = $user_result->organisation->name; } else { - return undef; + return; } return $c->render( json => { diff --git a/lib/Pear/LocalLoop/Controller/Api/User.pm b/lib/Pear/LocalLoop/Controller/Api/User.pm index 12ef04b..65f380c 100644 --- a/lib/Pear/LocalLoop/Controller/Api/User.pm +++ b/lib/Pear/LocalLoop/Controller/Api/User.pm @@ -72,7 +72,7 @@ sub post_account { } elsif ( defined $user_result->organisation_id ) { $display_name = $user_result->organisation->name; } else { - return undef; + return; } return $c->render( json => {