Skip to content

Commit b7cd2bb

Browse files
committed
no need to separately declare vars here
1 parent 3cb3cf7 commit b7cd2bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/cmd/codespace/ssh.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,8 @@ func (a *App) listOpensshConfig(ctx context.Context, opts configOptions) error {
203203
continue
204204
}
205205

206-
var sshUser string
207-
var ok bool
208-
209-
if sshUser, ok = sshUsers[cs.Repository.FullName]; !ok {
206+
sshUser, ok := sshUsers[cs.Repository.FullName]
207+
if !ok {
210208
session, err := openSSHSession(ctx, a, cs.Name, nil)
211209
if err != nil {
212210
fmt.Fprintf(os.Stderr, "error connecting to codespace: %v\n", err)

0 commit comments

Comments
 (0)