Skip to content

Commit

Permalink
Return task so await triggers on the async variants (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Zhuk <zhukoo@gmail.com>
Co-authored-by: amo <asmorogov@gmail.com>
Co-authored-by: vc-ci <ci@virtocommerce.com>
  • Loading branch information
4 people authored Aug 7, 2023
1 parent 65dfe33 commit d8a54a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ public virtual Task Install(ModuleSource source)
{
try
{
InnerInstall(source);
return InnerInstall(source);
}
catch (Exception exception)
{
throw new ModuleInstallationException("Error while module installation", exception);
}

return Task.CompletedTask;
}

protected abstract Task InnerInstall(ModuleSource source);
Expand Down

0 comments on commit d8a54a9

Please sign in to comment.