Skip to content

Commit a464bd3

Browse files
committed
Simplify GetSignerState
1 parent e335997 commit a464bd3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

message/validation/validation.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ type ConsensusState struct {
6565
// GetSignerState retrieves the state for the given signer.
6666
// Returns nil if the signer is not found.
6767
func (cs *ConsensusState) GetSignerState(signer spectypes.OperatorID) *SignerState {
68-
signerState, ok := cs.Signers.Get(signer)
69-
if !ok {
70-
return nil
71-
}
68+
signerState, _ := cs.Signers.Get(signer)
7269
return signerState
7370
}
7471

0 commit comments

Comments
 (0)