Mark function as helper to make stack traces slightly cleaner
This commit is contained in:
parent
90e6540bdc
commit
f36992c389
|
@ -239,6 +239,8 @@ func checkAllCommitsSigned(t *testing.T, entity *openpgp.Entity, repo *Repositor
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkCommitSigned(t *testing.T, entity *openpgp.Entity, commit *Commit) error {
|
func checkCommitSigned(t *testing.T, entity *openpgp.Entity, commit *Commit) error {
|
||||||
|
t.Helper()
|
||||||
|
|
||||||
signature, signedData, err := commit.ExtractSignature()
|
signature, signedData, err := commit.ExtractSignature()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Logf("No signature on commit\n%s", commit.ContentToSign())
|
t.Logf("No signature on commit\n%s", commit.ContentToSign())
|
||||||
|
|
Loading…
Reference in New Issue