Skip to content

Commit 7a1c36f

Browse files
authored
Update gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java
1 parent 913b819 commit 7a1c36f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,10 +951,8 @@ public CompareResults compare(Object projectIdOrPath, String from, String to, Lo
951951
GitLabApiForm formData = new GitLabApiForm()
952952
.withParam("from", from, true)
953953
.withParam("to", to, true)
954-
.withParam("straight", straight);
955-
if (fromProjectId != null) {
956-
formData.withParam("from_project_id", fromProjectId);
957-
}
954+
.withParam("straight", straight)
955+
.withParam("from_project_id", fromProjectId);
958956
Response response = get(
959957
Response.Status.OK,
960958
formData.asMap(),

0 commit comments

Comments
 (0)