Skip to content

Commit bdf591f

Browse files
committed
remove cleanEndpoint because it just obscures the one thing it does: trim a trailing slash
1 parent 05f0fbb commit bdf591f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/src/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Examples:
6565
}
6666

6767
func loginCmd(ctx context.Context, cfg *config, client api.Client, endpointArg string, out io.Writer) error {
68-
endpointArg = cleanEndpoint(endpointArg)
68+
endpointArg = strings.TrimSuffix(endpointArg, "/")
6969

7070
printProblem := func(problem string) {
7171
fmt.Fprintf(out, "❌ Problem: %s\n", problem)

0 commit comments

Comments
 (0)