Skip to content

Commit 08ef5a9

Browse files
committed
Fix return values
1 parent 3a995f9 commit 08ef5a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifest/rfc2822.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ func Parse2822(readerIn io.Reader) (*Manifest2822, error) {
265265
}
266266

267267
if !GitFetchRegex.MatchString(entry.GitFetch) {
268-
return fmt.Errorf(`Tags %q has invalid GitFetch (must be "refs/heads/..." or "refs/tags/..."): %q`, entry.TagsString(), entry.GitFetch)
268+
return nil, fmt.Errorf(`Tags %q has invalid GitFetch (must be "refs/heads/..." or "refs/tags/..."): %q`, entry.TagsString(), entry.GitFetch)
269269
}
270270
if !GitCommitRegex.MatchString(entry.GitCommit) {
271-
return fmt.Errorf(`Tags %q has invalid GitCommit (must be a commit, not a tag or ref): %q`, entry.TagsString(), entry.GitCommit)
271+
return nil, fmt.Errorf(`Tags %q has invalid GitCommit (must be a commit, not a tag or ref): %q`, entry.TagsString(), entry.GitCommit)
272272
}
273273

274274
err = manifest.AddEntry(entry)

0 commit comments

Comments
 (0)