Remove redundant name qualifiers
This commit is contained in:
parent
961f48f5bc
commit
86c06996b1
|
@ -138,8 +138,8 @@ namespace MediaBrowser.Api
|
||||||
options.Fields = hasFields.GetItemFields();
|
options.Fields = hasFields.GetItemFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.ContainsField(Model.Querying.ItemFields.RecursiveItemCount)
|
if (!options.ContainsField(ItemFields.RecursiveItemCount)
|
||||||
|| !options.ContainsField(Model.Querying.ItemFields.ChildCount))
|
|| !options.ContainsField(ItemFields.ChildCount))
|
||||||
{
|
{
|
||||||
var client = authContext.GetAuthorizationInfo(Request).Client ?? string.Empty;
|
var client = authContext.GetAuthorizationInfo(Request).Client ?? string.Empty;
|
||||||
if (client.IndexOf("kodi", StringComparison.OrdinalIgnoreCase) != -1 ||
|
if (client.IndexOf("kodi", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||||
|
@ -150,7 +150,7 @@ namespace MediaBrowser.Api
|
||||||
int oldLen = options.Fields.Length;
|
int oldLen = options.Fields.Length;
|
||||||
var arr = new ItemFields[oldLen + 1];
|
var arr = new ItemFields[oldLen + 1];
|
||||||
options.Fields.CopyTo(arr, 0);
|
options.Fields.CopyTo(arr, 0);
|
||||||
arr[oldLen] = Model.Querying.ItemFields.RecursiveItemCount;
|
arr[oldLen] = ItemFields.RecursiveItemCount;
|
||||||
options.Fields = arr;
|
options.Fields = arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ namespace MediaBrowser.Api
|
||||||
int oldLen = options.Fields.Length;
|
int oldLen = options.Fields.Length;
|
||||||
var arr = new ItemFields[oldLen + 1];
|
var arr = new ItemFields[oldLen + 1];
|
||||||
options.Fields.CopyTo(arr, 0);
|
options.Fields.CopyTo(arr, 0);
|
||||||
arr[oldLen] = Model.Querying.ItemFields.ChildCount;
|
arr[oldLen] = ItemFields.ChildCount;
|
||||||
options.Fields = arr;
|
options.Fields = arr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user