Remove scope from method that calls another method that has a scope

This commit is contained in:
Mole
2021-03-17 09:43:36 +01:00
parent 637e85ebbb
commit aa6d046efe

View File

@@ -305,14 +305,8 @@ namespace Umbraco.Core.Mapping
{
var context = new MapperContext(this);
TTarget targetInstance;
using (var scope = _scopeProvider.CreateScope(autoComplete: true))
{
f(context);
targetInstance = Map(source, target, context);
}
return targetInstance;
f(context);
return Map(source, target, context);;
}
/// <summary>