We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9055a commit 832cbb5Copy full SHA for 832cbb5
src/main/java/org/gitlab4j/api/GitLabApi.java
@@ -521,7 +521,7 @@ public void setSudoAsId(Integer sudoAsId) throws GitLabApiException {
521
522
// Get the User specified by the sudoAsId, if you are not an admin or the username is not found, this will fail
523
User user = getUserApi().getUser(sudoAsId);
524
- if (user == null || user.getId() != sudoAsId) {
+ if (user == null || !user.getId().equals(sudoAsId)) {
525
throw new GitLabApiException("the specified user ID was not found");
526
}
527
0 commit comments