Skip to content

Commit

Permalink
IRISHUB-238: fix test_lint failures in client/lcd/root.go and server/
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoyangLiu committed Aug 30, 2018
1 parent b878edc commit 3f83aca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions client/lcd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
"github.com/gorilla/mux"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tendermint/tendermint/libs/cli"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/log"
tmserver "github.com/tendermint/tendermint/rpc/lib/server"
tendermintLiteProxy "github.com/tendermint/tendermint/lite/proxy"
"github.com/tendermint/tendermint/libs/cli"
tendermintLite "github.com/tendermint/tendermint/lite"
tendermintLiteProxy "github.com/tendermint/tendermint/lite/proxy"
tmserver "github.com/tendermint/tendermint/rpc/lib/server"
)

// ServeCommand will generate a long-running rest server
Expand Down Expand Up @@ -88,7 +88,7 @@ func createHandler(cdc *wire.Codec) http.Handler {
home := viper.GetString(cli.HomeFlag)
nodeURI := viper.GetString(client.FlagNode)
var certifier tendermintLite.Certifier
if chainID != "" && home != "" && nodeURI != ""{
if chainID != "" && home != "" && nodeURI != "" {
certifier, err = tendermintLiteProxy.GetCertifier(chainID, home, nodeURI)
if err != nil {
panic(err)
Expand Down
14 changes: 7 additions & 7 deletions server/export_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package server

import (
"testing"
"github.com/stretchr/testify/require"
"bytes"
"github.com/cosmos/cosmos-sdk/server/mock"
"github.com/cosmos/cosmos-sdk/wire"
"github.com/tendermint/tendermint/libs/log"
"github.com/stretchr/testify/require"
tcmd "github.com/tendermint/tendermint/cmd/tendermint/commands"
"os"
"bytes"
"github.com/tendermint/tendermint/libs/log"
"io"
"github.com/cosmos/cosmos-sdk/server/mock"
)
"os"
"testing"
)

func TestEmptyState(t *testing.T) {
defer setupViper(t)()
Expand Down
2 changes: 1 addition & 1 deletion server/mock/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func AppGenStateEmpty(_ *wire.Codec, _ []json.RawMessage) (appState json.RawMess

// Return a validator, not much else
func AppGenTx(_ *wire.Codec, pk crypto.PubKey, genTxConfig gc.GenTx) (
appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error) {
appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error) {

validator = tmtypes.GenesisValidator{
PubKey: pk,
Expand Down

0 comments on commit 3f83aca

Please sign in to comment.