avoid nil panic here

This commit is contained in:
Jeff Carr 2024-12-01 16:40:41 -06:00
parent 412658698a
commit 6b42d07949
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func (repo *Repo) RedoGoMod() (bool, error) {
// return the attempt to parse go.mod & go.sum
return repo.parseGoSum()
}
repo.GoDeps = nil
repo.GoDeps = new(GoDeps)
repo.GoPrimitive = false
ok, err := repo.isPrimativeGoMod()