Skip to content

Commit

Permalink
test(scoop-status): inline a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BinToss committed Jan 29, 2025
1 parent 4aa288e commit ba8322c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/Scoop-Status.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ Describe 'Test-UpdateStatus' -Tag 'Scoop' {
$tmpDirPath = Join-Path $env:TEMP $(New-Guid)
}

[System.IO.DirectoryInfo] $TmpDirInfo = New-Item $tmpDirPath -ItemType Directory
return $TmpDirInfo

return (New-Item $tmpDirPath -ItemType Directory)
}
[System.IO.DirectoryInfo] $emptyDir = makeTmpDir
Test-UpdateStatus $emptyDir.FullName | Should -Be $true
Expand Down

0 comments on commit ba8322c

Please sign in to comment.