bugfix: Замена .Any() на !.Any() там, где это необходимо

This commit is contained in:
KharchenkoVV 2021-05-21 11:02:43 +05:00
parent c2f1338785
commit 802fdd1015
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ namespace AsbCloudInfrastructure.Services
public void UpdateData(string uid, IEnumerable<DataSaubBaseDto> dtos)
{
if (dtos == default || dtos.Any())
if (dtos == default || !dtos.Any())
return;
var telemetryId = telemetryService.GetOrCreateTemetryIdByUid(uid);

View File

@ -35,7 +35,7 @@ namespace AsbCloudInfrastructure.Services
var events = cacheEvents.Select(e => e.IdTelemetry == telemetry.Id);
if (events.Any())
if (!events.Any())
return null;
var messages = from m in db.Messages
@ -111,7 +111,7 @@ namespace AsbCloudInfrastructure.Services
public void Insert(string uid, IEnumerable<TelemetryMessageDto> dtos)
{
if (dtos.Any())
if (!dtos.Any())
return;
var telemetryId = telemetryService.GetOrCreateTemetryIdByUid(uid);