Skip to content

Commit a654308

Browse files
committed
Removed throws clause fro getOptionalMember() (#232).
1 parent f9155e0 commit a654308

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/gitlab4j/api/ProjectApi.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,8 @@ public Member getMember(Integer projectId, Integer userId) throws GitLabApiExcep
11271127
* @param projectId the project ID to get team member for
11281128
* @param userId the user ID of the member
11291129
* @return the member specified by the project ID/user ID pair
1130-
* @throws GitLabApiException if any exception occurs
11311130
*/
1132-
public Optional<Member> getOptionalMember(Integer projectId, Integer userId) throws GitLabApiException {
1131+
public Optional<Member> getOptionalMember(Integer projectId, Integer userId) {
11331132
try {
11341133
return (Optional.ofNullable(getMember(projectId, userId)));
11351134
} catch (GitLabApiException glae) {

0 commit comments

Comments
 (0)