Skip to content

Commit f448a87

Browse files
committed
ImpersonationService: remove unused return value
1 parent 27fb940 commit f448a87

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

user-manager/service/src/main/java/com/peterphi/usermanager/guice/authentication/ImpersonationService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ImpersonationService
2727
public boolean enabled = true;
2828

2929
@AuthConstraint(id = "impersonation", role = UserLogin.ROLE_ADMIN, comment = "only admins can impersonate other users")
30-
public String impersonate(final int userId)
30+
public void impersonate(final int userId)
3131
{
3232
if (!enabled)
3333
throw new IllegalArgumentException(
@@ -43,7 +43,5 @@ public String impersonate(final int userId)
4343
newUser.getEmail());
4444

4545
currentUser.reload(newUser);
46-
47-
return newUser.getSessionReconnectKey();
4846
}
4947
}

0 commit comments

Comments
 (0)