Skip to content

Commit

Permalink
Merge pull request #2062 from irisnet/vincent/code-clean
Browse files Browse the repository at this point in the history
R4R: Clean code and fix golangci error
  • Loading branch information
dreamer-zq authored Nov 4, 2019
2 parents d33a440 + 1447b0f commit b5532ae
Show file tree
Hide file tree
Showing 31 changed files with 564 additions and 2,684 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation' | grep -v '/server' | grep -v '/tests')
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation' | grep -v '/tests')
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')

export GO111MODULE = on
Expand Down
7 changes: 3 additions & 4 deletions app/v1/asset/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ import (

"github.com/stretchr/testify/require"

abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto"

"github.com/irisnet/irishub/app/v1/bank"
"github.com/irisnet/irishub/app/v1/mock"
"github.com/irisnet/irishub/app/v1/stake"
"github.com/irisnet/irishub/server/mock"
"github.com/irisnet/irishub/types"
sdk "github.com/irisnet/irishub/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto"
)

// initialize the mock application for this module
Expand Down
10 changes: 6 additions & 4 deletions app/v1/gov/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@ package gov

import (
"bytes"
"github.com/irisnet/irishub/app/protocol"
"github.com/irisnet/irishub/app/v1/asset"
"github.com/stretchr/testify/require"
"log"
"sort"
"testing"

"github.com/irisnet/irishub/app/protocol"
"github.com/irisnet/irishub/app/v1/asset"
"github.com/stretchr/testify/require"

abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto"

"fmt"

"github.com/irisnet/irishub/app/v1/auth"
"github.com/irisnet/irishub/app/v1/bank"
"github.com/irisnet/irishub/app/v1/distribution"
"github.com/irisnet/irishub/app/v1/mock"
"github.com/irisnet/irishub/app/v1/params"
"github.com/irisnet/irishub/app/v1/stake"
"github.com/irisnet/irishub/modules/guardian"
"github.com/irisnet/irishub/server/mock"
sdk "github.com/irisnet/irishub/types"
)

Expand Down
336 changes: 0 additions & 336 deletions app/v1/mock/app.go

This file was deleted.

Loading

0 comments on commit b5532ae

Please sign in to comment.