Commit a6543081 authored by Greg Messner's avatar Greg Messner
Browse files

Removed throws clause fro getOptionalMember() (#232).

parent f9155e05
...@@ -1127,9 +1127,8 @@ public class ProjectApi extends AbstractApi implements Constants { ...@@ -1127,9 +1127,8 @@ public class ProjectApi extends AbstractApi implements Constants {
* @param projectId the project ID to get team member for * @param projectId the project ID to get team member for
* @param userId the user ID of the member * @param userId the user ID of the member
* @return the member specified by the project ID/user ID pair * @return the member specified by the project ID/user ID pair
* @throws GitLabApiException if any exception occurs
*/ */
public Optional<Member> getOptionalMember(Integer projectId, Integer userId) throws GitLabApiException { public Optional<Member> getOptionalMember(Integer projectId, Integer userId) {
try { try {
return (Optional.ofNullable(getMember(projectId, userId))); return (Optional.ofNullable(getMember(projectId, userId)));
} catch (GitLabApiException glae) { } catch (GitLabApiException glae) {
......
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