Skip to content

Commit b9e0994

Browse files
committed
20230723A
1 parent d4e696a commit b9e0994

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hugoalh.GitHubActionsToolkit/module/cache.psm1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ Function Restore-Cache {
4545
Process {
4646
[Hashtable]$Argument = @{
4747
'primaryKey' = $Key[0]
48-
'restoreKeys' = $Key |
49-
Select-Object -SkipIndex 0
48+
'restoreKeys' = (
49+
$Key |
50+
Select-Object -SkipIndex 0
51+
) ?? @()
5052
'paths' = ($PSCmdlet.ParameterSetName -ieq 'LiteralPath') ? (
5153
$LiteralPath |
5254
ForEach-Object -Process { [WildcardPattern]::Escape($_) }

0 commit comments

Comments
 (0)