Skip to content

Commit 5294600

Browse files
committed
style
1 parent c6e9689 commit 5294600

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/main/java/org/gitlab4j/api/UserApi.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,10 @@ public SshKey addSshKey(Long userId, String title, String key) throws GitLabApiE
833833
* @throws GitLabApiException if any exception occurs
834834
*/
835835
public SshKey addSshKey(Long userId, String title, String key, Date expiresAt) throws GitLabApiException {
836-
GitLabApiForm formData = new GitLabApiForm().withParam("title", title).withParam("key", key).withParam("expires_at", expiresAt);
836+
GitLabApiForm formData = new GitLabApiForm()
837+
.withParam("title", title)
838+
.withParam("key", key)
839+
.withParam("expires_at", expiresAt);
837840
Response response = post(Response.Status.CREATED, formData, "user", "keys");
838841
return (response.readEntity(SshKey.class));
839842
}
@@ -1024,7 +1027,7 @@ public void revokePersonalAccessToken(Long tokenId) throws GitLabApiException {
10241027
}
10251028

10261029
Response.Status expectedStatus =
1027-
(isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
1030+
(isApiVersion(ApiVersion.V3) ? Response.Status.OK : Response.Status.NO_CONTENT);
10281031
delete(expectedStatus, null, "personal_access_tokens", tokenId);
10291032
}
10301033
// as per https://docs.gitlab.com/ee/api/README.html#impersonation-tokens, impersonation tokens are a type of

0 commit comments

Comments
 (0)