From ec5899071532487a245453970d5a64e1cec69780 Mon Sep 17 00:00:00 2001 From: cmbrose <5447118+cmbrose@users.noreply.github.com> Date: Fri, 10 Jun 2022 12:38:10 -0500 Subject: [PATCH] Typo --- pkg/cmd/codespace/ssh.go | 2 +- pkg/ssh/ssh_keys.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/codespace/ssh.go b/pkg/cmd/codespace/ssh.go index e9bd16b0c..550fa3875 100644 --- a/pkg/cmd/codespace/ssh.go +++ b/pkg/cmd/codespace/ssh.go @@ -125,7 +125,7 @@ func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err e startSshServerOpts := []func(*liveshare.StartSSHServerOptions){} if shouldGenerateSSHKeys(args, opts) && sshContext.HasKeygen() { - keyPair, err := sshContext.GenerateSSHKey("codespaces", ssh.WithNoErrorOnExitingKey()) + keyPair, err := sshContext.GenerateSSHKey("codespaces", ssh.WithNoErrorOnExistingKey()) if err != nil { return fmt.Errorf("failed to generate ssh keys: %s", err) } diff --git a/pkg/ssh/ssh_keys.go b/pkg/ssh/ssh_keys.go index 113e17109..c8bdc33fa 100644 --- a/pkg/ssh/ssh_keys.go +++ b/pkg/ssh/ssh_keys.go @@ -41,7 +41,7 @@ type GenerateSSHKeyOptions struct { promptPassphrase func() (string, error) } -func WithNoErrorOnExitingKey() func(*GenerateSSHKeyOptions) { +func WithNoErrorOnExistingKey() func(*GenerateSSHKeyOptions) { return func(o *GenerateSSHKeyOptions) { o.noErrorOnExists = true }