Skip to content

Commit

Permalink
remove uneccessary ;
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammerbeck committed Feb 21, 2025
1 parent c84ee33 commit eadde2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public async Task<OneOf<DownloadFileResponse, Error>> Process(DownloadFileReques
{
return Errors.NoAccessToResource;
}
;
if (request.IsLegacy && request.OnBehalfOfConsumer is not null && !fileTransfer.IsRecipient(request.OnBehalfOfConsumer))
{
return Errors.NoAccessToResource;
Expand All @@ -45,13 +44,11 @@ public async Task<OneOf<DownloadFileResponse, Error>> Process(DownloadFileReques
{
return Errors.InvalidResourceDefinition;
}
;
var serviceOwner = await serviceOwnerRepository.GetServiceOwner(resource.ServiceOwnerId);
if (serviceOwner is null)
{
return Errors.ServiceOwnerNotConfigured;
}
;
var downloadStream = await brokerStorageService.DownloadFile(serviceOwner, fileTransfer, cancellationToken);
if (resource.UseManifestFileShim == true && request.IsLegacy) // For specific legacy resources during transition period
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ public async Task<OneOf<Guid, Error>> Process(InitializeFileTransferRequest requ
{
return Errors.NoAccessToResource;
}
;
var resource = await resourceRepository.GetResource(request.ResourceId, cancellationToken);
if (resource is null)
{
return Errors.InvalidResourceDefinition;
}
;
var serviceOwner = await serviceOwnerRepository.GetServiceOwner(resource.ServiceOwnerId);
if (serviceOwner is null)
{
Expand Down

0 comments on commit eadde2b

Please sign in to comment.