docs(dir): 📄 suppress RCS1080 instance

This commit is contained in:
Collin M. Barrett 2021-11-01 17:51:23 -05:00
parent 948525b6a0
commit 7a7b52c4aa

View file

@ -33,7 +33,9 @@ public async Task<IEnumerable<LanguageVm>> Handle(
CancellationToken cancellationToken)
{
return await _context.Languages
#pragma warning disable RCS1080 // Use 'Count/Length' property instead of 'Any' method.
.Where(l => l.FilterListLanguages.Any())
#pragma warning restore RCS1080 // Use 'Count/Length' property instead of 'Any' method.
.OrderBy(l => l.Iso6391)
.ProjectTo<LanguageVm>(_mapper.ConfigurationProvider)
.ToListAsync(cancellationToken);