Skip to content

Commit

Permalink
Correct MilestoneClient
Browse files Browse the repository at this point in the history
  • Loading branch information
PMExtra committed Oct 31, 2023
1 parent b42eedb commit 11e2c1e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions NGitLab/Impl/MilestoneClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ public class MilestoneClient : IMilestoneClient
private readonly API _api;
private readonly string _milestonePath;

[Obsolete("Use long or namespaced path string as id instead.")]
internal MilestoneClient(API api, MilestoneScope scope, int id)
: this(api, scope, (long)id)
{
}

internal MilestoneClient(API api, MilestoneScope scope, IdOrNamespacedPath projectId)
internal MilestoneClient(API api, MilestoneScope scope, IdOrNamespacedPath id)
{
_api = api;
_milestonePath = $"/{scope.ToString().ToLowerInvariant()}/{projectId.ValueAsUriParameter}/milestones";
_milestonePath = $"/{scope.ToString().ToLowerInvariant()}/{id.ValueAsUriParameter}/milestones";
Scope = scope;
}

Expand Down

0 comments on commit 11e2c1e

Please sign in to comment.