Skip to content

Commit

Permalink
I'm on my knees linter
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Kubuxu committed Nov 26, 2024
1 parent 028ceab commit 9aabcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/lotus-shed/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func loadF3IDList(path string) ([]gpbft.ActorID, error) {
if err != nil {
return nil, fmt.Errorf("failed to open file: %w", err)
}
defer file.Close()
defer file.Close() //nolint:errcheck

var ids []gpbft.ActorID
scanner := bufio.NewScanner(file)
Expand Down Expand Up @@ -157,7 +157,7 @@ var f3GenExplicitPower = &cli.Command{

seed := cctx.Int64("seed")
if seed == -1 {
seed = int64(time.Now().UnixNano())
seed = time.Now().UnixNano()
}
rng := rand.New(rand.NewSource(seed))

Expand Down

0 comments on commit 9aabcb5

Please sign in to comment.