Skip to content

Commit c654c39

Browse files
committed
clean up comment
1 parent 7eaefb8 commit c654c39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/code/PublishPSResource.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected override void BeginProcessing()
148148

149149
if (MyInvocation.BoundParameters.ContainsKey(nameof(ModulePrefix)))
150150
{
151-
if (MyInvocation.BoundParameters.ContainsKey(nameof(Repository))) // can remove if Repository is 'Mandatory' parameter
151+
if (MyInvocation.BoundParameters.ContainsKey(nameof(Repository)))
152152
{
153153
// at this point it is ensured PSResourceRepository.xml file is created
154154
PSRepositoryInfo repository = RepositorySettings.Read(new[] { Repository }, out string[] _).FirstOrDefault();
@@ -163,7 +163,6 @@ protected override void BeginProcessing()
163163
}
164164
else
165165
{
166-
// can remove if Repository is 'Mandatory' parameter
167166
ThrowTerminatingError(new ErrorRecord(
168167
new PSInvalidOperationException("ModulePrefix parameter can only be provided with the Repository parameter."),
169168
"ModulePrefixParameterProvidedWithoutRepositoryParameter",

0 commit comments

Comments
 (0)