Standardization of using order and object initialization (#1028)
* Code cleanup KubernetesClient * KubernetesClient.Basic code cleanup * KubernetesClient.Models cleanup * LibKubernetesGenerator code cleanup * Improved readability of object initialization * FIx namespace order * Fixed some compilation warning
This commit is contained in:
@@ -35,9 +35,9 @@ namespace @namespace
|
||||
{
|
||||
foreach (var innerEx in ex.InnerExceptions)
|
||||
{
|
||||
if (innerEx is k8s.Autorest.HttpOperationException)
|
||||
if (innerEx is k8s.Autorest.HttpOperationException exception)
|
||||
{
|
||||
var code = ((k8s.Autorest.HttpOperationException)innerEx).Response.StatusCode;
|
||||
var code = exception.Response.StatusCode;
|
||||
if (code == HttpStatusCode.NotFound)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user