ModulusChecking.Models.BankAccountDetails.ExceptionTenPreProcessing C# (CSharp) Method

ExceptionTenPreProcessing() private method

private ExceptionTenPreProcessing ( IList mappings ) : IList
mappings IList
return IList
        private IList<ModulusWeightMapping> ExceptionTenPreProcessing(IList<ModulusWeightMapping> mappings)
        {
            if (mappings.First().Exception == 10 && AccountNumber.ExceptionTenShouldZeroiseWeights)
            {
                return mappings.Select((m, index) => index == 0 ? ZeroiseUtoB(m) : m).ToList();
            }
            return mappings;
        }