From a3299ac4b45bed5e12be61376748c1533b4627cd Mon Sep 17 00:00:00 2001 From: gitasaurus Date: Fri, 14 Apr 2023 19:33:44 -0400 Subject: [PATCH] Removing empty object paramater in MigrationsClient.DeleteArchive (#2698) Co-authored-by: Keegan Campbell --- Octokit.Tests/Clients/MigrationsClientTests.cs | 3 +-- Octokit/Clients/MigrationsClient.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Octokit.Tests/Clients/MigrationsClientTests.cs b/Octokit.Tests/Clients/MigrationsClientTests.cs index 26d71d16d8..e8c9d5c6be 100644 --- a/Octokit.Tests/Clients/MigrationsClientTests.cs +++ b/Octokit.Tests/Clients/MigrationsClientTests.cs @@ -177,8 +177,7 @@ public void RequestsCorrectUrl() client.DeleteArchive("fake", 69); connection.Received().Delete( - Arg.Is(u => u.ToString() == "orgs/fake/migrations/69/archive"), - Arg.Any()); + Arg.Is(u => u.ToString() == "orgs/fake/migrations/69/archive")); } [Fact] diff --git a/Octokit/Clients/MigrationsClient.cs b/Octokit/Clients/MigrationsClient.cs index a7feeae4c8..6fa99bcd1b 100644 --- a/Octokit/Clients/MigrationsClient.cs +++ b/Octokit/Clients/MigrationsClient.cs @@ -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); } ///