Skip to content

Commit

Permalink
address linter
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Feb 11, 2020
1 parent b38c8a7 commit a22dafa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storagemarket/impl/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"errors"
"io"
"os"
"sync"

"github.com/ipfs/go-cid"
Expand Down Expand Up @@ -314,7 +313,7 @@ func (p *Provider) ImportDataForDeal(ctx context.Context, propCid cid.Cid, data
}
_ = n // TODO: verify n?

_, err = tempfi.Seek(0, os.SEEK_SET)
_, err = tempfi.Seek(0, io.SeekStart)
if err != nil {
return xerrors.Errorf("failed to seek through temp imported file: %w", err)
}
Expand Down

0 comments on commit a22dafa

Please sign in to comment.