send back an error on nil

This commit is contained in:
Jeff Carr 2025-02-09 15:05:10 -06:00
parent 447b4ebd3b
commit 76c327b1f1
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
package main package main
import ( import (
"errors"
"fmt" "fmt"
"path/filepath" "path/filepath"
@ -200,7 +201,7 @@ func setCurrentRepo(check *gitpb.Repo, s string, note string) bool {
func testGoDepsCheckOk(godeps *gitpb.GoDeps, verbose bool) error { func testGoDepsCheckOk(godeps *gitpb.GoDeps, verbose bool) error {
if godeps == nil { if godeps == nil {
return nil return errors.New("testGoDepsCheckOk() godeps == nil")
} }
all := godeps.SortByGoPath() all := godeps.SortByGoPath()
for all.Scan() { for all.Scan() {