Collapse redundant if statement

Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
Thane Thomson
2022-04-05 12:08:49 -04:00
parent 16b67fd9e6
commit eedb750e09

View File

@@ -97,10 +97,7 @@ func (pv MockPV) SignVote(ctx context.Context, chainID string, vote *tmproto.Vot
}
vote.Signature = sig
vote.ExtensionSignature, err = pv.PrivKey.Sign(extSignBytes)
if err != nil {
return err
}
return nil
return err
}
// Implements PrivValidator.