mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-08 04:50:16 +00:00
Collapse redundant if statement
Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user