Skip to content

Commit

Permalink
(fix) Fix pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmoa committed Jun 6, 2024
1 parent 2218318 commit ce23fb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions client/chain/markets_assistant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package chain

import (
"context"
"github.com/InjectiveLabs/sdk-go/client/common"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/InjectiveLabs/sdk-go/client/common"

"github.com/InjectiveLabs/sdk-go/client/exchange"
derivativeExchangePB "github.com/InjectiveLabs/sdk-go/exchange/derivative_exchange_rpc/pb"
spotExchangePB "github.com/InjectiveLabs/sdk-go/exchange/spot_exchange_rpc/pb"
Expand All @@ -18,7 +19,7 @@ import (
func TestMarketAssistantCreationUsingMarketsFromExchange(t *testing.T) {
httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("[]"))
_, _ = w.Write([]byte("[]"))
}))
defer httpServer.Close()

Expand Down Expand Up @@ -89,7 +90,7 @@ func TestMarketAssistantCreationUsingMarketsFromExchange(t *testing.T) {
func TestMarketAssistantCreationWithAllTokens(t *testing.T) {
httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("[]"))
_, _ = w.Write([]byte("[]"))
}))
defer httpServer.Close()

Expand Down
5 changes: 3 additions & 2 deletions client/core/tokens_file_loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package core
import (
"encoding/json"
"fmt"
"gotest.tools/v3/assert"
"net/http"
"net/http/httptest"
"testing"

"gotest.tools/v3/assert"
)

func TestLoadTokensFromUrl(t *testing.T) {
Expand Down Expand Up @@ -47,7 +48,7 @@ func TestLoadTokensFromUrl(t *testing.T) {

httpServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write(metadataString)
_, _ = w.Write(metadataString)
}))
defer httpServer.Close()

Expand Down
1 change: 1 addition & 0 deletions client/exchange/exchange_test_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package exchange
import (
"context"
"errors"

"github.com/InjectiveLabs/sdk-go/client/common"

accountPB "github.com/InjectiveLabs/sdk-go/exchange/accounts_rpc/pb"
Expand Down

0 comments on commit ce23fb7

Please sign in to comment.