Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gendalf90 committed Sep 12, 2022
1 parent bcb24f7 commit b1fbc61
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Horarium/Handlers/RunnerJobs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@ private async Task<JobMetadata> GetReadyJob()
_horariumLogger.Error("Ошибка получения джоба из базы", ex);
}

if (job == null) return null;

try
{
if (job != null)
{
return job.ToJob(_jsonSerializerSettings);
}
return job.ToJob(_jsonSerializerSettings);
}
catch (Exception ex)
{
Expand Down

0 comments on commit b1fbc61

Please sign in to comment.