chore: remove redundant import prefixes

This commit is contained in:
Łukasz Magiera
2022-06-15 12:06:22 +02:00
parent 39cede946c
commit 05cdeb80c3
137 changed files with 171 additions and 171 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ import (
"strings"
"time"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
"github.com/urfave/cli/v2"
cbg "github.com/whyrusleeping/cbor-gen"
"golang.org/x/xerrors"
@@ -38,7 +38,7 @@ import (
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/consensus/filcns"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
)
var ChainCmd = &cli.Command{
+2 -2
View File
@@ -11,7 +11,7 @@ import (
"testing"
"github.com/golang/mock/gomock"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
"github.com/stretchr/testify/assert"
"github.com/filecoin-project/go-state-types/abi"
@@ -19,7 +19,7 @@ import (
"github.com/filecoin-project/specs-actors/v7/actors/builtin"
"github.com/filecoin-project/lotus/api"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types/mock"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sort"
"strconv"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"github.com/Kubuxu/imtui"
"github.com/gdamore/tcell/v2"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
@@ -17,7 +17,7 @@ import (
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/chain/actors/builtin"
"github.com/filecoin-project/lotus/chain/messagepool"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
)
var mpoolManage = &cli.Command{
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strconv"
"text/tabwriter"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
cbor "github.com/ipfs/go-ipld-cbor"
"github.com/urfave/cli/v2"
cbg "github.com/whyrusleeping/cbor-gen"
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/fatih/color"
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
protocol "github.com/libp2p/go-libp2p-core/protocol"
"github.com/libp2p/go-libp2p-core/protocol"
"github.com/multiformats/go-multiaddr"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
paramfetch "github.com/filecoin-project/go-paramfetch"
"github.com/filecoin-project/go-paramfetch"
"github.com/filecoin-project/lotus/build"
)
+2 -2
View File
@@ -6,7 +6,7 @@ import (
"bytes"
"testing"
gomock "github.com/golang/mock/gomock"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
ucli "github.com/urfave/cli/v2"
@@ -14,7 +14,7 @@ import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/api"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
)
func mustAddr(a address.Address, err error) address.Address {
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"github.com/Kubuxu/imtui"
"github.com/gdamore/tcell/v2"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
@@ -18,7 +18,7 @@ import (
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/build"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
)
func InteractiveSend(ctx context.Context, cctx *cli.Context, srv ServicesAPI,
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"reflect"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
cbg "github.com/whyrusleeping/cbor-gen"
"golang.org/x/xerrors"
@@ -18,7 +18,7 @@ import (
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/chain/consensus/filcns"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
)
//go:generate go run github.com/golang/mock/mockgen -destination=servicesmock_test.go -package=cli -self_package github.com/filecoin-project/lotus/cli . ServicesAPI
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"testing"
gomock "github.com/golang/mock/gomock"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/filecoin-project/go-address"
@@ -15,8 +15,8 @@ import (
"github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/lotus/api"
mocks "github.com/filecoin-project/lotus/api/mocks"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/api/mocks"
"github.com/filecoin-project/lotus/chain/types"
)
type markerKeyType struct{}
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"time"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
"github.com/urfave/cli/v2"
"github.com/filecoin-project/go-state-types/abi"
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"github.com/filecoin-project/lotus/api"
apitypes "github.com/filecoin-project/lotus/api/types"
types "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types"
)
func TestWalletNew(t *testing.T) {