Skip to content

Commit

Permalink
Do not check if jobs are null
Browse files Browse the repository at this point in the history
  • Loading branch information
abiisnn committed Nov 1, 2024
1 parent fcbd679 commit cce80ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async Task<CancelImportResponse> Handle(CancelImportRequest request, Canc
// We need to check the status of all jobs
IReadOnlyList<JobInfo> jobs = await _queueClient.GetJobByGroupIdAsync(QueueType.Import, request.JobId, false, cancellationToken);

if (jobs == null || jobs.Count == 0)
if (jobs.Count == 0)
{
throw new ResourceNotFoundException(string.Format(Core.Resources.ImportJobNotFound, request.JobId));
}
Expand Down

0 comments on commit cce80ca

Please sign in to comment.