Skip to content

Commit

Permalink
(fix) Fixed pre-commit check issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmoa authored and shibaeff committed Oct 9, 2024
1 parent c722ea3 commit 722a2d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions client/chain/chain_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package chain_test

import (
"os"
"testing"

rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
cosmtypes "github.com/cosmos/cosmos-sdk/types"
eth "github.com/ethereum/go-ethereum/common"
"os"
"testing"

"github.com/InjectiveLabs/sdk-go/client"
"github.com/InjectiveLabs/sdk-go/client/chain"
Expand Down
2 changes: 1 addition & 1 deletion client/chain/ofac.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func DownloadOfacList() error {
return fmt.Errorf("failed to download OFAC list, status code: %d", resp.StatusCode)
}

if err := os.MkdirAll(OfacListPath, 0755); err != nil {
if err := os.MkdirAll(OfacListPath, 0755); err != nil { // nolint:gocritic // 0755 is the correct permission
return err
}
outFile, err := os.Create(GetOfacListPath())
Expand Down
7 changes: 4 additions & 3 deletions client/chain/ofac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ package chain_test

import (
"encoding/json"
"io"
"os"
"testing"

"github.com/InjectiveLabs/sdk-go/client"
"github.com/InjectiveLabs/sdk-go/client/chain"
"github.com/InjectiveLabs/sdk-go/client/common"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
cosmtypes "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/suite"
"io"
"os"
"testing"
)

type OfacTestSuite struct {
Expand Down

0 comments on commit 722a2d3

Please sign in to comment.