Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions NGitLab/Impl/MergeRequestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ namespace NGitLab.Impl
public class MergeRequestClient : IMergeRequestClient
{
private readonly API _api;
private readonly int _projectId;
private readonly string _projectPath;

public MergeRequestClient(API api, int projectId)
{
_api = api;
_projectId = projectId;
_projectPath = Project.Url + "/" + projectId.ToStringInvariant();
}

Expand Down Expand Up @@ -89,8 +87,6 @@ public MergeRequest Create(MergeRequestCreate mergeRequest)
if (mergeRequest == null)
throw new ArgumentNullException(nameof(mergeRequest));

mergeRequest.TargetProjectId ??= _projectId;

return _api
.Post().With(mergeRequest)
.To<MergeRequest>(_projectPath + "/merge_requests");
Expand Down