Skip to content

Commit

Permalink
Removing empty object paramater in MigrationsClient.DeleteArchive (oc…
Browse files Browse the repository at this point in the history
…tokit#2698)

Co-authored-by: Keegan Campbell <[email protected]>
  • Loading branch information
gitasaurus and kfcampbell authored Apr 14, 2023
1 parent 5292e18 commit a3299ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Octokit.Tests/Clients/MigrationsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ public void RequestsCorrectUrl()
client.DeleteArchive("fake", 69);

connection.Received().Delete(
Arg.Is<Uri>(u => u.ToString() == "orgs/fake/migrations/69/archive"),
Arg.Any<object>());
Arg.Is<Uri>(u => u.ToString() == "orgs/fake/migrations/69/archive"));
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Clients/MigrationsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public Task DeleteArchive(string org, int id)

var endpoint = ApiUrls.EnterpriseMigrationArchive(org, id);

return ApiConnection.Delete(endpoint, new object());
return ApiConnection.Delete(endpoint);
}

/// <summary>
Expand Down

0 comments on commit a3299ac

Please sign in to comment.