must send an error on nil

This commit is contained in:
Jeff Carr 2025-02-09 15:05:23 -06:00
parent f70f54615f
commit 83ad663fc0
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func (f *Forge) CheckOverride(gopath string) bool {
func (f *Forge) TestGoDepsCheckOk(godeps *gitpb.GoDeps, verbose bool) error {
if godeps == nil {
return nil
return errors.New("forge.TestGoDepsCheckOk() godeps == nil")
}
all := godeps.SortByGoPath()
for all.Scan() {