Fixed PR review comments

This commit is contained in:
Emma Garland
2021-02-12 17:03:53 +00:00
parent 2d00ece365
commit d508bd21ff

View File

@@ -941,7 +941,7 @@ namespace Umbraco.Infrastructure.Services.Implement
using (IScope scope = ScopeProvider.CreateScope(autoComplete: true))
{
scope.ReadLock(Constants.Locks.MemberTree);
return _memberGroupRepository.GetMany().Select(x=>x).Distinct();
return _memberGroupRepository.GetMany().Distinct();
}
}