From 5bcb80c333356d72c36b329c31d460d9403af56b Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Wed, 9 Sep 2020 12:28:21 +0300 Subject: [PATCH] refactored function --- common-helpers.psm1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common-helpers.psm1 b/common-helpers.psm1 index e3e27d5..fa54723 100644 --- a/common-helpers.psm1 +++ b/common-helpers.psm1 @@ -104,7 +104,5 @@ function GetToolDirectory { } $ToolcachePath = Join-Path -Path $targetPath -ChildPath $ToolName $ToolcacheVersionPath = Join-Path -Path $ToolcachePath -ChildPath $Version - $toolDirectory = Join-Path $ToolcacheVersionPath $Architecture - - return $toolDirectory + return Join-Path $ToolcacheVersionPath $Architecture }