Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceredron committed Dec 12, 2023
1 parent a8c67ef commit c448c7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Altinn.Broker/Controllers/MalwareScanResultsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ public ActionResult ProcessMalwareScanResults(EventMessage eventMessage)
string blobUri = eventMessage.Data.BlobUri;
string fileIdFromUri = blobUri.Split("/").Last();

string result = eventMessage.Data.ScanResultType;
string result = eventMessage.Data.ScanResultType;
Guid fileId = Guid.Parse(fileIdFromUri);

if(fileId == Guid.Empty)
if (fileId == Guid.Empty)
{
return NotFound();
}

if(result.Equals("malicious", StringComparison.InvariantCultureIgnoreCase))
if (result.Equals("malicious", StringComparison.InvariantCultureIgnoreCase))
{
_fileStatusRepository.InsertFileStatus(fileId, Core.Domain.Enums.FileStatus.Failed);
return Ok();
Expand Down

0 comments on commit c448c7d

Please sign in to comment.