From 7a1c36f6d508688a2aac55b992200c6ffef5a469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Tue, 24 Dec 2024 14:32:07 +0100 Subject: [PATCH] Update gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java --- .../src/main/java/org/gitlab4j/api/RepositoryApi.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java b/gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java index 7fa4ced2..a4dc9f0d 100644 --- a/gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java +++ b/gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java @@ -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(),