Skip to content

Commit

Permalink
style: make linter happy again
Browse files Browse the repository at this point in the history
fuck
  • Loading branch information
ccamel committed Oct 23, 2023
1 parent 7ef1422 commit a6bedb4
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 33 deletions.
9 changes: 2 additions & 7 deletions scripts/generate_predicates_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,13 @@ func GeneratePredicateDocumentation() error {
return err
}

if err := writeToFile("docs/predicate/predicates.md", content); err != nil {
return err
}

return nil
return writeToFile("docs/predicate/predicates.md", content)
}

func readTemplateMust(templateName string) string {
template, err := f.ReadFile("templates/" + templateName)

if err != nil {
panic(fmt.Errorf("failed to read file %s: %s", templateName, err))
panic(fmt.Errorf("failed to read file %s: %w", templateName, err))
}

return string(template)
Expand Down
3 changes: 2 additions & 1 deletion scripts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"errors"
"os"

"github.com/cosmos/cosmos-sdk/server"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/server"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions starship/tests/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"testing"

banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/stretchr/testify/suite"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/suite"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
)

func TestE2ETestSuite(t *testing.T) {
Expand Down
13 changes: 7 additions & 6 deletions starship/tests/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ import (
"os"
"time"

"github.com/cosmos/cosmos-sdk/types/module"

starship "github.com/cosmology-tech/starship/clients/go/client"
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
lens "github.com/strangelove-ventures/lens/client"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"
"gopkg.in/yaml.v3"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"

transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
)

var configFile = "../configs/devnet.yaml"
Expand Down
6 changes: 4 additions & 2 deletions x/logic/migrations/v2/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions x/logic/migrations/v2/types/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions x/logic/migrations/v2/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion x/logic/migrations/v2/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions x/logic/migrations/v2/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/logic/predicate/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (m ioMode) Term() engine.Term {
//
// # Open a stream from a cosmwasm query.
// # The Stream should be read as a string with a read_string/3 predicate, and then closed with the close/1 predicate.
// - open('cosmwasm:okp4-objectarium:okp41lppz4x9dtmccek2m6cezjlwwzup6pdqrkvxjpk95806c3dewgrfq602kgx?query=%7B%22object_data%22%3A%7B%22id%22%3A%222625337e6025495a87cb32eb7f5a042f31e4385fd7e34c90d661bfc94dd539e3%22%7D%7D', 'read', Stream)
// - open('cosmwasm:okp4-objectarium:okp412kgx?query=%7B%22object_data%22%3A%7B%...4dd539e3%22%7D%7D', 'read', Stream)
func Open(vm *engine.VM, sourceSink, mode, stream, options engine.Term, k engine.Cont, env *engine.Env) *engine.Promise {
var name string
switch s := env.Resolve(sourceSink).(type) {
Expand Down
3 changes: 2 additions & 1 deletion x/logic/testutil/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion x/mint/testutil/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion x/vesting/testutil/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a6bedb4

Please sign in to comment.