From d8a54a9de50a9087bc19f2db51133ebfa84ee658 Mon Sep 17 00:00:00 2001 From: mk-pm <140820841+mk-pm@users.noreply.github.com> Date: Mon, 7 Aug 2023 15:35:49 +0200 Subject: [PATCH] Return task so await triggers on the async variants (#94) Co-authored-by: Oleg Zhuk Co-authored-by: amo Co-authored-by: vc-ci --- src/VirtoCommerce.Build/PlatformTools/ModulesInstallerBase.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/VirtoCommerce.Build/PlatformTools/ModulesInstallerBase.cs b/src/VirtoCommerce.Build/PlatformTools/ModulesInstallerBase.cs index 5900e9e..bdf079b 100644 --- a/src/VirtoCommerce.Build/PlatformTools/ModulesInstallerBase.cs +++ b/src/VirtoCommerce.Build/PlatformTools/ModulesInstallerBase.cs @@ -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);