diff --git a/types/block.go b/types/block.go index 00a28d1f8..57ca3b540 100644 --- a/types/block.go +++ b/types/block.go @@ -764,7 +764,7 @@ func (ecs ExtendedCommitSig) ValidateBasic() error { } if len(ecs.ExtensionSignature) == 0 && len(ecs.Extension) != 0 { - return fmt.Errorf("vote extension signature absent on vote with extension") + return errors.New("vote extension signature absent on vote with extension") } return nil }