send back an error on nil
This commit is contained in:
parent
447b4ebd3b
commit
76c327b1f1
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue