Remove explicit undef returns

This commit is contained in:
Tom Bloor 2017-08-25 14:44:36 +01:00
parent 06e89c9199
commit e886eb2ce6
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ sub startup {
return $user->id;
}
}
return undef;
return;
},
});

View file

@ -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 => {

View file

@ -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 => {