summaryrefslogtreecommitdiff
path: root/cleanGoSum.go
diff options
context:
space:
mode:
Diffstat (limited to 'cleanGoSum.go')
-rw-r--r--cleanGoSum.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go
index e909c29..ec4c981 100644
--- a/cleanGoSum.go
+++ b/cleanGoSum.go
@@ -20,6 +20,9 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error {
var err error = nil
var fixes [][]string
log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen())
+ if check.GoDeps == nil {
+ return errors.New("check.GoDeps == nil")
+ }
all := check.GoDeps.SortByGoPath()
for all.Scan() {
depRepo := all.Next()