fix(lotus-sim): lint

This commit is contained in:
Steven Allen 2021-06-18 14:43:09 -07:00
parent 2fdf49e7da
commit 69a8a6bc0e

View File

@ -22,12 +22,16 @@ var infoMessageSizeSimCommand = &cli.Command{
Value: 0,
},
},
Action: func(cctx *cli.Context) error {
Action: func(cctx *cli.Context) (err error) {
node, err := open(cctx)
if err != nil {
return err
}
defer node.Close()
defer func() {
if cerr := node.Close(); err == nil {
err = cerr
}
}()
go profileOnSignal(cctx, syscall.SIGUSR2)