Claymore.TalkCleanupWikiBot.ArticlesForDeletion.ReplaceEmptyResults C# (CSharp) Method

ReplaceEmptyResults() private method

private ReplaceEmptyResults ( WikiPageSection section ) : void
section WikiPageSection
return void
        private void ReplaceEmptyResults(WikiPageSection section)
        {
            WikiPageSection result = section.Subsections.FirstOrDefault(s => _l10i.Processor != null
                        ? _l10i.Results.Any(r => r == _l10i.Processor(s).Trim())
                        : _l10i.Results.Any(r => r == s.Title.Trim()));
            if (result != null && result.Subsections.Count == 0 &&
                string.IsNullOrEmpty(result.SectionText.Trim()))
            {
                result.Title = _l10i.EmptyResult;
            }
            section.ForEach(ReplaceEmptyResults);
        }