Skip to content
Snippets Groups Projects
Commit dbb91fc7 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

add missing return

parent 4d9c99d1
No related branches found
No related tags found
1 merge request!977Resolve "Improve token usage for users"
Pipeline #218751 passed
......@@ -185,7 +185,7 @@ func (s AuthServer) handleLogout(ctx context.Context, userName string) error {
err = removeTokenFromUserIfExists(storedUser, token)
if err != nil {
status.Errorf(codes.Aborted, "Error removing token from user, it was either already logged out or otherwise not found")
return status.Errorf(codes.Aborted, "Error removing token from user, it was either already logged out or otherwise not found")
}
err = s.userService.Update(&rbac.User{UserID: storedUser.ID(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment