Skip to content

Commit 4002982

Browse files
authored
Update src/code/RegisterPSResourceRepository.cs
1 parent 4fe3725 commit 4002982

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/code/RegisterPSResourceRepository.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ protected override void ProcessRecord()
145145
PSRepositoryInfo.APIVersion? repoApiVersion = null;
146146
if (MyInvocation.BoundParameters.ContainsKey(nameof(ApiVersion)))
147147
{
148-
if (ApiVersion == PSRepositoryInfo.APIVersion.Unknown)
149148
{
150149
ThrowTerminatingError(new ErrorRecord(
151150
new ArgumentException("ApiVersion 'Unknown' is not a valid value for Register-PSResourceRepository. Valid values are: V2, V3, Local, NugetServer, ContainerRegistry"),

0 commit comments

Comments
 (0)