mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 02:18:44 +00:00
refactoring ApiConnection.EmptyBody to RequestBody.Empty to break the inverse dependency from Connection to ApiConnection
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Octokit
|
||||
{
|
||||
/// <summary>
|
||||
/// Container for the static <see cref="Empty"/> method that represents an
|
||||
/// intentional empty request body to avoid overloading <code>null</code>.
|
||||
/// </summary>
|
||||
public static class RequestBody
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2211:NonConstantFieldsShouldNotBeVisible")]
|
||||
public static object Empty = new object();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user