File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function Install-Release {
7474 [ValidateNotNullOrWhiteSpace ()]
7575 [string ] $Version ,
7676
77- [Parameter (Mandatory , ParameterSetName = " InputObject" , Position = 0 , ValueFromPipeline )]
77+ [Parameter (Mandatory , ParameterSetName = " InputObject" , ValueFromPipeline )]
7878 [ValidateNotNull ()]
7979 [Release ] $InputObject ,
8080
@@ -83,7 +83,7 @@ function Install-Release {
8383 )
8484
8585 process {
86- $release = $InputObject ? $InputObject : [Release ]::new($Version )
86+ $release = $PSCmdlet .ParameterSetName -eq " InputObject" ? $InputObject : [Release ]::new($Version )
8787 [Setup ]::new($release ).Install($OptionalTasks )
8888 }
8989}
@@ -135,13 +135,13 @@ function Test-Release {
135135 [ValidateNotNullOrWhiteSpace ()]
136136 [string ] $Version ,
137137
138- [Parameter (Mandatory , ParameterSetName = " InputObject" , Position = 0 , ValueFromPipeline )]
138+ [Parameter (Mandatory , ParameterSetName = " InputObject" , ValueFromPipeline )]
139139 [ValidateNotNull ()]
140140 [Release ] $InputObject
141141 )
142142
143143 process {
144- $release = $InputObject ? $InputObject : [Release ]::new($Version )
144+ $release = $PSCmdlet .ParameterSetName -eq " InputObject" ? $InputObject : [Release ]::new($Version )
145145 $release.Exists ()
146146 }
147147}
You can’t perform that action at this time.
0 commit comments