Merge pull request #3296 from filecoin-project/steb/fix-lints-again
Fix more lint warnings.
This commit is contained in:
commit
cf177bfea5
@ -106,6 +106,7 @@ var mpoolClear = &cli.Command{
|
|||||||
|
|
||||||
really := cctx.Bool("really-do-it")
|
really := cctx.Bool("really-do-it")
|
||||||
if !really {
|
if !really {
|
||||||
|
//nolint:golint
|
||||||
return fmt.Errorf("--really-do-it must be specified for this action to have an effect; you have been warned")
|
return fmt.Errorf("--really-do-it must be specified for this action to have an effect; you have been warned")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import (
|
|||||||
|
|
||||||
rice "github.com/GeertJohan/go.rice"
|
rice "github.com/GeertJohan/go.rice"
|
||||||
logging "github.com/ipfs/go-log/v2"
|
logging "github.com/ipfs/go-log/v2"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
|
|
||||||
@ -132,9 +131,6 @@ type handler struct {
|
|||||||
sendPerRequest types.FIL
|
sendPerRequest types.FIL
|
||||||
|
|
||||||
limiter *Limiter
|
limiter *Limiter
|
||||||
minerLimiter *Limiter
|
|
||||||
|
|
||||||
defaultMinerPeer peer.ID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *handler) send(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) send(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user