Skip to content

Commit 8e2211d

Browse files
committed
Fix type
1 parent dae49f3 commit 8e2211d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hugoalh.GitHubActionsToolkit.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function Get-GHActionsInput {
306306
}
307307
process {
308308
$Name.GetEnumerator() | ForEach-Object -Process {
309-
[string]$InputValue = Get-ChildItem -Path "Env:\INPUT_$($_.ToUpper() -replace '[ \n\r]','_')" -ErrorAction SilentlyContinue
309+
$InputValue = Get-ChildItem -Path "Env:\INPUT_$($_.ToUpper() -replace '[ \n\r]','_')" -ErrorAction SilentlyContinue
310310
if ($InputValue -eq $null) {
311311
if ($Require) {
312312
throw "Input ``$_`` is not defined!"
@@ -367,7 +367,7 @@ function Get-GHActionsState {
367367
}
368368
process {
369369
$Name.GetEnumerator() | ForEach-Object -Process {
370-
[string]$StateValue = Get-ChildItem -Path "Env:\STATE_$($_.ToUpper() -replace '[ \n\r]','_')" -ErrorAction SilentlyContinue
370+
$StateValue = Get-ChildItem -Path "Env:\STATE_$($_.ToUpper() -replace '[ \n\r]','_')" -ErrorAction SilentlyContinue
371371
if ($StateValue -eq $null) {
372372
$Result[$_] = $StateValue
373373
} else {

0 commit comments

Comments
 (0)