Remove extra return statement
This commit is contained in:
parent
441301069e
commit
edbd4e0db6
|
@ -961,7 +961,6 @@ namespace Emby.Server.Implementations.Library
|
||||||
var path = getPathFn(name);
|
var path = getPathFn(name);
|
||||||
var id = GetItemByNameId<T>(path);
|
var id = GetItemByNameId<T>(path);
|
||||||
var item = GetItemById(id) as T;
|
var item = GetItemById(id) as T;
|
||||||
|
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
item = new T
|
item = new T
|
||||||
|
@ -974,8 +973,6 @@ namespace Emby.Server.Implementations.Library
|
||||||
};
|
};
|
||||||
|
|
||||||
CreateItem(item, null);
|
CreateItem(item, null);
|
||||||
|
|
||||||
return item;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user