Skip to content

Commit 5c9d21e

Browse files
authored
Apply suggestions from code review
1 parent 4002982 commit 5c9d21e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/code/RegisterPSResourceRepository.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ protected override void ProcessRecord()
145145
PSRepositoryInfo.APIVersion? repoApiVersion = null;
146146
if (MyInvocation.BoundParameters.ContainsKey(nameof(ApiVersion)))
147147
{
148-
{
149-
ThrowTerminatingError(new ErrorRecord(
150-
new ArgumentException("ApiVersion 'Unknown' is not a valid value for Register-PSResourceRepository. Valid values are: V2, V3, Local, NugetServer, ContainerRegistry"),
151-
"InvalidApiVersion",
152-
ErrorCategory.InvalidArgument,
153-
this));
154-
}
155148
repoApiVersion = ApiVersion;
156149
}
157150

0 commit comments

Comments
 (0)