ci(build): Fixes a number of warnings for a cleaner build (#2529)

* Fixing a number of warnings for a cleaner build

* Removing extra Summary slashes
This commit is contained in:
Chris Simpson
2022-08-08 16:20:37 +01:00
committed by GitHub
parent 5d4c928ee6
commit 651d9818c7
11 changed files with 15 additions and 74 deletions
+4 -2
View File
@@ -25,7 +25,9 @@ namespace Octokit
/// <summary>
/// Constructs an instance of ApiException
/// </summary>
#pragma warning disable CS0618 // Response() is obsolete but we need this as a default as Response passed down cannot be null
public ApiException() : this(new Response())
#pragma warning restore CS0618 // Response() is obsolete but we need this as a default as Response passed down cannot be null
{
}
@@ -202,8 +204,8 @@ namespace Octokit
{
return HttpResponse?.ContentType != null
&& !HttpResponse.ContentType.StartsWith("image/", StringComparison.OrdinalIgnoreCase)
&& HttpResponse.Body is string
? (string)HttpResponse.Body : string.Empty;
&& HttpResponse.Body is string @string
? @string : string.Empty;
}
}