avoid nil panic here
This commit is contained in:
parent
412658698a
commit
6b42d07949
|
@ -42,7 +42,7 @@ func (repo *Repo) RedoGoMod() (bool, error) {
|
||||||
// return the attempt to parse go.mod & go.sum
|
// return the attempt to parse go.mod & go.sum
|
||||||
return repo.parseGoSum()
|
return repo.parseGoSum()
|
||||||
}
|
}
|
||||||
repo.GoDeps = nil
|
repo.GoDeps = new(GoDeps)
|
||||||
repo.GoPrimitive = false
|
repo.GoPrimitive = false
|
||||||
|
|
||||||
ok, err := repo.isPrimativeGoMod()
|
ok, err := repo.isPrimativeGoMod()
|
||||||
|
|
Loading…
Reference in New Issue