nolint the existing linting errors

This commit is contained in:
laser 2020-04-01 16:18:20 -07:00
parent ffc966a9ad
commit 431a15c14a
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ func NewMockSectorMgr(threads int, ssize abi.SectorSize) *SectorMgr {
const (
statePacking = iota
statePreCommit
stateCommit
stateCommit // nolint
)
type sectorState struct {

View File

@ -11,7 +11,7 @@ import (
logging "github.com/ipfs/go-log/v2"
)
var log = logging.Logger("tarutil")
var log = logging.Logger("tarutil") // nolint
func ExtractTar(body io.Reader, dir string) error {
if err := os.MkdirAll(dir, 0755); err != nil {
@ -73,7 +73,7 @@ func writeTarDirectory(dir string, w io.Writer) error {
return xerrors.Errorf("wiritng header for file %s: %w", file.Name(), err)
}
f, err := os.OpenFile(filepath.Join(dir, file.Name()), os.O_RDONLY, 644)
f, err := os.OpenFile(filepath.Join(dir, file.Name()), os.O_RDONLY, 644) // nolint
if err != nil {
return xerrors.Errorf("opening %s for reading: %w", file.Name(), err)
}