Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed May 31, 2024
1 parent 6405d45 commit 0ed7a25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/commands/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ func ReplayCmd(appCreator types.AppCreator) *cobra.Command {
if err != nil {
return err
}
defer db.Close()
defer func() {
err = db.Close()
}()

nodeConfig := dymintconf.DefaultConfig("", "")
err = nodeConfig.GetViperConfig(cmd, ctx.Viper.GetString(flags.FlagHome))
Expand Down Expand Up @@ -107,8 +109,8 @@ func ReplayCmd(appCreator types.AppCreator) *cobra.Command {
if err := node.BlockManager.UpdateStateFromApp(); err != nil {
return fmt.Errorf("failed to rollback tendermint state: %w", err)
}
fmt.Printf("RollApp state moved back to height %d successfuly.\n", heightInt)
return nil
fmt.Printf("RollApp state moved back to height %d successfully.\n", heightInt)
return err
},
}

Expand Down

0 comments on commit 0ed7a25

Please sign in to comment.