Skip to content

Commit

Permalink
flyctl/api can not depend on flyctl
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Mar 1, 2023
1 parent 0aa0f9c commit 6a8283d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import (
"strings"

genq "github.com/Khan/genqlient/graphql"
"github.com/superfly/flyctl/terminal"
"github.com/superfly/graphql"
)

var baseURL string
var errorLog bool
var (
baseURL string
errorLog bool
)

// SetBaseURL - Sets the base URL for the API
func SetBaseURL(url string) {
Expand Down Expand Up @@ -121,7 +122,7 @@ func GetAccessToken(ctx context.Context, email, password, otp string) (token str
defer func() {
err := res.Body.Close()
if err != nil {
terminal.Errorf("error closing response body: %v", err)
fmt.Println("Error closing response body: %v", err)
}
}()

Expand Down

0 comments on commit 6a8283d

Please sign in to comment.