Skip to content

Commit

Permalink
Suppress CA2000 warning
Browse files Browse the repository at this point in the history
Visual Studio was wrong about it being redundant.
  • Loading branch information
martincostello committed Sep 30, 2023
1 parent ff95327 commit 0b52cb7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public InterceptionBenchmarks()
ContentSerializer = new SystemTextJsonContentSerializer(),
};

#pragma warning disable CA2000
_client = _options.CreateHttpClient();
_service = RestService.For<IGitHub>(_options.CreateHttpClient("https://api.github.com"), refitSettings);
#pragma warning restore CA2000
}

[Benchmark]
Expand Down

0 comments on commit 0b52cb7

Please sign in to comment.