Skip to content

Commit

Permalink
shed: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 2, 2020
1 parent f147072 commit 1319d70
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cmd/lotus-shed/pruning.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ var stateTreePruneCmd = &cli.Command{
return err
}

defer ds.Close()
defer ds.Close() //nolint:errcheck

mds, err := lkrepo.Datastore("/metadata")
if err != nil {
return err
}
defer mds.Close()
defer mds.Close() //nolint:errcheck

if cctx.Bool("only-ds-gc") {
gcds, ok := ds.(datastore.GCDatastore)
Expand All @@ -156,9 +156,8 @@ var stateTreePruneCmd = &cli.Command{
}
fmt.Println("gc complete!")
return nil
} else {
return fmt.Errorf("datastore doesnt support gc")
}
return fmt.Errorf("datastore doesnt support gc")
}

bs := blockstore.NewBlockstore(ds)
Expand Down Expand Up @@ -194,7 +193,7 @@ var stateTreePruneCmd = &cli.Command{
}

fmt.Println()
fmt.Printf("Succesfully marked keep set! (%d objects)\n", goodSet.Len())
fmt.Printf("Successfully marked keep set! (%d objects)\n", goodSet.Len())

if cctx.Bool("dry-run") {
return nil
Expand Down

0 comments on commit 1319d70

Please sign in to comment.