Skip to content

Commit

Permalink
chore: lint fixes (#2741)
Browse files Browse the repository at this point in the history
* use os package

* format

Co-authored-by: Jerónimo Albi <[email protected]>
  • Loading branch information
Alex Johnson and jeronimoalbi authored Aug 12, 2022
1 parent 3ba95b1 commit 4eaa73a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ package docs
import "embed"

// Docs are Ignite CLI docs.
//
//go:embed *.md */*.md
var Docs embed.FS
8 changes: 5 additions & 3 deletions ignite/pkg/cosmosclient/cosmosclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,11 @@ type Response struct {
// e.g., for the following CreateChain func the type would be: `types.MsgCreateChainResponse`.
//
// ```proto
// service Msg {
// rpc CreateChain(MsgCreateChain) returns (MsgCreateChainResponse);
// }
//
// service Msg {
// rpc CreateChain(MsgCreateChain) returns (MsgCreateChainResponse);
// }
//
// ```
func (r Response) Decode(message proto.Message) error {
data, err := hex.DecodeString(r.Data)
Expand Down
3 changes: 1 addition & 2 deletions ignite/services/network/networkchain/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package networkchain
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
Expand Down Expand Up @@ -251,7 +250,7 @@ func (c Chain) applyGenesisValidators(ctx context.Context, genesisVals []network
// write gentxs
for i, val := range genesisVals {
gentxPath := filepath.Join(gentxDir, fmt.Sprintf("gentx%d.json", i))
if err = ioutil.WriteFile(gentxPath, val.Gentx, 0o666); err != nil {
if err = os.WriteFile(gentxPath, val.Gentx, 0o666); err != nil {
return err
}
}
Expand Down

0 comments on commit 4eaa73a

Please sign in to comment.