Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 21, 2022
1 parent a1c0ede commit 510acf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/wrapper/gameforge.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var (
)

// Register a new gameforge lobby account
func Register(client *http.Client, ctx context.Context, lobby, email, password, challengeID, lang string) error {
func Register(client httpclient.IHttpClient, ctx context.Context, lobby, email, password, challengeID, lang string) error {
if lang == "" {
lang = "en"
}
Expand Down Expand Up @@ -131,7 +131,7 @@ func ValidateAccount(client httpclient.IHttpClient, ctx context.Context, lobby,
}

// RedeemCode ...
func RedeemCode(client *http.Client, ctx context.Context, lobby, email, password, otpSecret, token string) error {
func RedeemCode(client httpclient.IHttpClient, ctx context.Context, lobby, email, password, otpSecret, token string) error {
postSessionsRes, err := GFLogin(client, ctx, lobby, email, password, otpSecret, "")
if err != nil {
return err
Expand Down Expand Up @@ -179,7 +179,7 @@ func RedeemCode(client *http.Client, ctx context.Context, lobby, email, password
}

// LoginAndAddAccount adds an account to a gameforge lobby
func LoginAndAddAccount(client *http.Client, ctx context.Context, lobby, username, password, otpSecret, universe, lang string) (*AddAccountRes, error) {
func LoginAndAddAccount(client httpclient.IHttpClient, ctx context.Context, lobby, username, password, otpSecret, universe, lang string) (*AddAccountRes, error) {
postSessionsRes, err := GFLogin(client, ctx, lobby, username, password, otpSecret, "")
if err != nil {
return nil, err
Expand Down

0 comments on commit 510acf5

Please sign in to comment.