Skip to content

Commit 852b303

Browse files
authored
Fix issue for PVS-Studio (#14366)
1 parent 0b09d42 commit 852b303

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ApiManagement/ApiManagement.ServiceManagement/ApiManagementClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ private string GetApiTypeForImport(
11941194
}
11951195
}
11961196

1197-
return apiType.HasValue ? apiType.Value.ToString("g") : PsApiManagementApiType.Http.ToString("g");
1197+
return PsApiManagementApiType.Http.ToString("g");
11981198
}
11991199

12001200
public void ApiAddToProduct(PsApiManagementContext context, string productId, string apiId)

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementApiVersionSet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ public override void ExecuteApiManagementCmdlet()
6969
apiVersionSetId = apiVersionSet.ApiVersionSetId;
7070
}
7171

72-
if (string.IsNullOrEmpty(ApiVersionSetId))
72+
if (string.IsNullOrEmpty(apiVersionSetId))
7373
{
7474
WriteObject(Client.GetApiVersionSets(resourceGroupName, serviceName), true);
7575
}
7676
else
7777
{
78-
WriteObject(Client.GetApiVersionSet(resourceGroupName, serviceName, ApiVersionSetId));
78+
WriteObject(Client.GetApiVersionSet(resourceGroupName, serviceName, apiVersionSetId));
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)