Skip to content
Merged

. #21

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ internal static PSObject ToPsObject(this JToken jtoken, ResourceObjectFormat obj
var jobject = (JObject)jtoken;
var psObject = new PSObject();

if (jobject.CanConvertTo<Resource<JToken>>())
{
return jobject.ToResource().ToPsObject(objectFormat);
}

if (!string.IsNullOrWhiteSpace(objectType))
{
psObject.TypeNames.Add(objectType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,11 +578,6 @@ private Task<ResponseWithContinuation<Permission[]>> GetPermissions(string permi
/// <param name="resources">The resource.</param>
private async Task<Resource<JToken>[]> GetPopulatedResource(IEnumerable<Resource<JToken>> resources)
{
if (this.IsResourceGroupLevelResourceGet())
{
return new Resource<JToken>[0];
}

return await resources
.Select(resource => this.GetPopulatedResource(resource))
.WhenAllForAwait()
Expand Down