aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-09-11 12:57:57 +0200
committerBond_009 <bond.009@outlook.com>2020-09-11 12:57:57 +0200
commitedbd4e0db6ba7e8ba08757f74274e5c83c9660e8 (patch)
tree1e136dcd657ed6d0016307561b0a6802506117c3
parent441301069e8e03070e1f024c41ebadfcff88e3ba (diff)
Remove extra return statement
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs3
1 files changed, 0 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index cfa714f23..00282b71a 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -961,7 +961,6 @@ namespace Emby.Server.Implementations.Library
var path = getPathFn(name);
var id = GetItemByNameId<T>(path);
var item = GetItemById(id) as T;
-
if (item == null)
{
item = new T
@@ -974,8 +973,6 @@ namespace Emby.Server.Implementations.Library
};
CreateItem(item, null);
-
- return item;
}
return item;