File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ protected override void BeginProcessing()
148
148
149
149
if ( MyInvocation . BoundParameters . ContainsKey ( nameof ( ModulePrefix ) ) )
150
150
{
151
- if ( MyInvocation . BoundParameters . ContainsKey ( nameof ( Repository ) ) ) // can remove if Repository is 'Mandatory' parameter
151
+ if ( MyInvocation . BoundParameters . ContainsKey ( nameof ( Repository ) ) )
152
152
{
153
153
// at this point it is ensured PSResourceRepository.xml file is created
154
154
PSRepositoryInfo repository = RepositorySettings . Read ( new [ ] { Repository } , out string [ ] _ ) . FirstOrDefault ( ) ;
@@ -163,7 +163,6 @@ protected override void BeginProcessing()
163
163
}
164
164
else
165
165
{
166
- // can remove if Repository is 'Mandatory' parameter
167
166
ThrowTerminatingError ( new ErrorRecord (
168
167
new PSInvalidOperationException ( "ModulePrefix parameter can only be provided with the Repository parameter." ) ,
169
168
"ModulePrefixParameterProvidedWithoutRepositoryParameter" ,
You can’t perform that action at this time.
0 commit comments