Skip to content

Commit 535d832

Browse files
committed
small tweak
1 parent 903b7be commit 535d832

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

internal/codespaces/states.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func PollPostCreateStates(ctx context.Context, log logger, apiClient *api.API, u
7777

7878
func getPostCreateOutput(ctx context.Context, tunnelPort int, codespace *api.Codespace, user string) ([]PostCreateState, error) {
7979
stdout, err := RunCommand(
80-
ctx, tunnelPort, sshDestination(codespace, user),
80+
ctx, tunnelPort, fmt.Sprintf("%s@localhost", user),
8181
"cat /workspaces/.codespaces/shared/postCreateOutput.json",
8282
)
8383
if err != nil {
@@ -98,9 +98,4 @@ func getPostCreateOutput(ctx context.Context, tunnelPort int, codespace *api.Cod
9898
}
9999

100100
return output.Steps, nil
101-
}
102-
103-
// TODO(josebalius): this won't be needed soon
104-
func sshDestination(codespace *api.Codespace, user string) string {
105-
return user + "@localhost"
106-
}
101+
}

0 commit comments

Comments
 (0)