Fix more lint warnings.

This way we can keep CI green.
This commit is contained in:
Steven Allen 2020-08-25 12:50:59 -07:00
parent e23e3db5b5
commit f84bbd4520
2 changed files with 2 additions and 5 deletions

View File

@ -106,6 +106,7 @@ var mpoolClear = &cli.Command{
really := cctx.Bool("really-do-it")
if !really {
//nolint:golint
return fmt.Errorf("--really-do-it must be specified for this action to have an effect; you have been warned")
}

View File

@ -10,7 +10,6 @@ import (
rice "github.com/GeertJohan/go.rice"
logging "github.com/ipfs/go-log/v2"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
@ -131,10 +130,7 @@ type handler struct {
from address.Address
sendPerRequest types.FIL
limiter *Limiter
minerLimiter *Limiter
defaultMinerPeer peer.ID
limiter *Limiter
}
func (h *handler) send(w http.ResponseWriter, r *http.Request) {