Simplify IContainer.CreateInstance

This commit is contained in:
Stephan
2018-11-24 16:41:27 +01:00
parent 392c9ed83b
commit 8b74453c13
4 changed files with 7 additions and 38 deletions

View File

@@ -180,7 +180,7 @@ namespace Umbraco.Core.IO
if (name == null) throw new Exception("panic!");
var shadowWrapper = CreateShadowWrapper(supporting, "typed/" + name);
return _container.CreateInstance<TFileSystem>(new { innerFileSystem = shadowWrapper });
return _container.CreateInstance<TFileSystem>(shadowWrapper);
})).Value;
}