cosmetics
This commit is contained in:
parent
e7448b1bb5
commit
4a20c9b60f
@ -147,9 +147,8 @@ func NewMsgIndex(basePath string, cs ChainStore) (MsgIndex, error) {
|
||||
|
||||
err = msgIndex.prepareStatements()
|
||||
if err != nil {
|
||||
err2 := db.Close()
|
||||
if err2 != nil {
|
||||
log.Errorf("error closing msgindex database: %s", err2)
|
||||
if err := db.Close(); err != nil {
|
||||
log.Errorf("error closing msgindex database: %s", err)
|
||||
}
|
||||
|
||||
return nil, xerrors.Errorf("error preparing msgindex database statements: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user