Commit 832cbb57 authored by Sergey Isterin's avatar Sergey Isterin Committed by Greg Messner
Browse files

changed comparison of Integer references using the == to equals() (#138)

* Changed comparison of Integer references using the == to equals()
parent 1f9055a2
...@@ -521,7 +521,7 @@ public class GitLabApi { ...@@ -521,7 +521,7 @@ public class GitLabApi {
// Get the User specified by the sudoAsId, if you are not an admin or the username is not found, this will fail // Get the User specified by the sudoAsId, if you are not an admin or the username is not found, this will fail
User user = getUserApi().getUser(sudoAsId); User user = getUserApi().getUser(sudoAsId);
if (user == null || user.getId() != sudoAsId) { if (user == null || !user.getId().equals(sudoAsId)) {
throw new GitLabApiException("the specified user ID was not found"); throw new GitLabApiException("the specified user ID was not found");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment