send back an error on nil
This commit is contained in:
parent
447b4ebd3b
commit
76c327b1f1
|
@ -2,6 +2,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
|
||||
|
@ -200,7 +201,7 @@ func setCurrentRepo(check *gitpb.Repo, s string, note string) bool {
|
|||
|
||||
func testGoDepsCheckOk(godeps *gitpb.GoDeps, verbose bool) error {
|
||||
if godeps == nil {
|
||||
return nil
|
||||
return errors.New("testGoDepsCheckOk() godeps == nil")
|
||||
}
|
||||
all := godeps.SortByGoPath()
|
||||
for all.Scan() {
|
||||
|
|
Loading…
Reference in New Issue