Skip to content

Commit c7b0317

Browse files
authored
Small cleanup as a follow up of #828 (#835)
1 parent c14370f commit c7b0317

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Sign.Cli/AzureKeyVaultCommand.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ internal AzureKeyVaultCommand(CodeCommand codeCommand, IServiceProviderFactory s
8484
// The key uri is similar and the key name matches the certificate name
8585
var keyUri = new Uri($"{url.Scheme}://{url.Authority}/keys/{certificateId}");
8686

87-
if (!KeyVaultKeyIdentifier.TryCreate(certUri, out var keyId))
88-
{
89-
context.Console.Error.WriteLine(AzureKeyVaultResources.InvalidKeyVaultUrl);
90-
context.ExitCode = ExitCode.InvalidOptions;
91-
return;
92-
}
93-
9487
serviceProviderFactory.AddServices(services =>
9588
{
9689
services.AddAzureClients(builder =>

0 commit comments

Comments
 (0)