From f9a34b3f9c09042efe968f4f9a7dd15a7678ad17 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 9 Jul 2019 14:46:06 +0200 Subject: [PATCH] Cleanup lint License: MIT Signed-off-by: Jakub Sztandera --- cli/cmd.go | 2 +- cmd/lotus/main.go | 4 ++-- go.sum | 4 ---- node/api.go | 1 + 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cli/cmd.go b/cli/cmd.go index 7b7fd135e..d7972e021 100644 --- a/cli/cmd.go +++ b/cli/cmd.go @@ -27,7 +27,7 @@ func getApi(ctx *cli.Context) api.API { // Not safe for concurrent execution. func reqContext(cctx *cli.Context) context.Context { if uctx, ok := cctx.App.Metadata[metadataContext]; ok { - // unchecked cast as if somethign else is in there + // unchecked cast as if something else is in there // it is crash worthy either way return uctx.(context.Context) } diff --git a/cmd/lotus/main.go b/cmd/lotus/main.go index a74d53e86..61978dc3c 100644 --- a/cmd/lotus/main.go +++ b/cmd/lotus/main.go @@ -1,13 +1,13 @@ package main import ( - "github.com/filecoin-project/go-lotus/api" - "github.com/filecoin-project/go-lotus/api/client" "log" "os" "gopkg.in/urfave/cli.v2" + "github.com/filecoin-project/go-lotus/api" + "github.com/filecoin-project/go-lotus/api/client" "github.com/filecoin-project/go-lotus/build" lcli "github.com/filecoin-project/go-lotus/cli" "github.com/filecoin-project/go-lotus/daemon" diff --git a/go.sum b/go.sum index 7dabb6fc1..4f704b363 100644 --- a/go.sum +++ b/go.sum @@ -140,10 +140,6 @@ github.com/ipfs/go-ipld-format v0.0.2 h1:OVAGlyYT6JPZ0pEfGntFPS40lfrDmaDbQwNHEY2 github.com/ipfs/go-ipld-format v0.0.2/go.mod h1:4B6+FM2u9OJ9zCV+kSbgFAZlOrv1Hqbf0INGQgiKf9k= github.com/ipfs/go-log v0.0.1 h1:9XTUN/rW64BCG1YhPK9Hoy3q8nr4gOmHHBpgFdfw6Lc= github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= -github.com/ipfs/go-log v0.0.2-0.20190703113630-0c3cfb1eccc4 h1:4GUopYwyu/8kX0UxYB7QDYOUbnt9HCg/j6J0sMqVvNQ= -github.com/ipfs/go-log v0.0.2-0.20190703113630-0c3cfb1eccc4/go.mod h1:YTiqro5xwLoGra88hB8tMBlN+7ByaT3Kdaa0UqwCmI0= -github.com/ipfs/go-log v0.0.2-0.20190703140941-9af13b2afabc h1:AxCayhl8xqk6kurny0Y9yLdFigq7t1DkeWb4WSk6UzQ= -github.com/ipfs/go-log v0.0.2-0.20190703140941-9af13b2afabc/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= github.com/ipfs/go-log v0.0.2-0.20190708183747-9c9fd6111bea h1:T5Xz37N8fqK3u0aLbWXCoTOO+S62T+TvOLRZh8q8vX0= github.com/ipfs/go-log v0.0.2-0.20190708183747-9c9fd6111bea/go.mod h1:YTiqro5xwLoGra88hB8tMBlN+7ByaT3Kdaa0UqwCmI0= github.com/ipfs/go-merkledag v0.0.2 h1:U3Q74RLOwpbtERjCv/MODC99qSxHBw33ZeMfiGXl7ts= diff --git a/node/api.go b/node/api.go index 252a1b5f2..20878de8c 100644 --- a/node/api.go +++ b/node/api.go @@ -2,6 +2,7 @@ package node import ( "context" + "github.com/filecoin-project/go-lotus/api" "github.com/filecoin-project/go-lotus/build"