Skip to content

Commit

Permalink
chore(fmt): make linter happy throughout ther project
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Sep 30, 2021
1 parent 1fb0042 commit 232c55a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/celestia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
}

func run() error {
// TODO(@Wondertan): In practise we won't need all INFO loggers from IPFS/libp2p side
// TODO(@Wondertan): In practice we won't need all INFO loggers from IPFS/libp2p side
// so we would need to turn off them somewhere in `logs` package.
logging.SetAllLoggers(logging.LevelInfo)
return rootCmd.Execute()
Expand Down
8 changes: 4 additions & 4 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ func Start(repoName string, tp node.Type) *cobra.Command {
panic("parent command must specify a persistent flag name for repository path")
}
return &cobra.Command{
Use: "start",
Short: "Starts Node daemon. First stopping signal gracefully stops the Node and second terminates it.",
Aliases: []string{"run", "daemon"},
Args: cobra.NoArgs,
Use: "start",
Short: "Starts Node daemon. First stopping signal gracefully stops the Node and second terminates it.",
Aliases: []string{"run", "daemon"},
Args: cobra.NoArgs,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
repoPath := cmd.Flag(repoName).Value.String()
Expand Down
2 changes: 2 additions & 0 deletions node/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/require"
)

//nolint:dupl
func TestRepoFull(t *testing.T) {
dir := t.TempDir()

Expand Down Expand Up @@ -39,6 +40,7 @@ func TestRepoFull(t *testing.T) {
assert.NotNil(t, cfg)
}

//nolint:dupl
func TestRepoLight(t *testing.T) {
dir := t.TempDir()

Expand Down
3 changes: 2 additions & 1 deletion service/block/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"testing"

"github.com/celestiaorg/celestia-core/testutils"
"github.com/celestiaorg/celestia-node/service/header"
"github.com/stretchr/testify/require"

"github.com/celestiaorg/celestia-node/service/header"
)

func Test_listenForNewBlocks(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion service/block/fraud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"testing"

"github.com/celestiaorg/celestia-core/testutils"
"github.com/celestiaorg/celestia-node/service/header"
"github.com/stretchr/testify/require"

"github.com/celestiaorg/celestia-node/service/header"
)

func Test_validateEncoding_Successful(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion service/block/types.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package block

import (
"github.com/celestiaorg/celestia-node/service/header"
"github.com/celestiaorg/rsmt2d"

"github.com/celestiaorg/celestia-node/service/header"

core "github.com/celestiaorg/celestia-core/types"
)

Expand Down

0 comments on commit 232c55a

Please sign in to comment.