Skip to content

Commit

Permalink
Fixed EOL bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Markov committed Feb 23, 2022
1 parent 566e30c commit 1451e68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public String getGitLabUrl(@Nullable String revision, String path, @Nullable Int
@Override
public void createOrUpdateReviewComment(String revision, String fullPath, Integer line, String body) {
try {
if (config.isMergeRequestDiscussionEnabled() && config.mergeRequestIid() != -1) {
if (config.isMergeRequestDiscussionEnabled()) {
createReviewDiscussion(fullPath, line, body);
} else {
gitLabAPIV4.getGitLabAPICommits().postCommitComments(gitLabProject.getId(), revision != null ? revision : getFirstCommitSHA(), body, fullPath, line, "new");
Expand Down

0 comments on commit 1451e68

Please sign in to comment.