Skip to content

Commit

Permalink
Update gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini authored Dec 24, 2024
1 parent 913b819 commit 7a1c36f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,8 @@ public CompareResults compare(Object projectIdOrPath, String from, String to, Lo
GitLabApiForm formData = new GitLabApiForm()
.withParam("from", from, true)
.withParam("to", to, true)
.withParam("straight", straight);
if (fromProjectId != null) {
formData.withParam("from_project_id", fromProjectId);
}
.withParam("straight", straight)
.withParam("from_project_id", fromProjectId);
Response response = get(
Response.Status.OK,
formData.asMap(),
Expand Down

0 comments on commit 7a1c36f

Please sign in to comment.