diff --git a/cmd/zetacored/root.go b/cmd/zetacored/root.go index a78c7aee9e..a72d4a0cf6 100644 --- a/cmd/zetacored/root.go +++ b/cmd/zetacored/root.go @@ -301,8 +301,7 @@ func (ac appCreator) appExport( // If height is -1, it means we are using the latest height. // For all other cases, we load the specified height from the Store if height != -1 { - err := zetaApp.LoadHeight(height) - if err != nil { + if err := zetaApp.LoadHeight(height); err != nil { return servertypes.ExportedApp{}, err } }