From 6b42d07949e7220223662c5e5e01d1223aaf26b9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 16:40:41 -0600 Subject: avoid nil panic here --- goDep.redoGoMod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'goDep.redoGoMod.go') diff --git a/goDep.redoGoMod.go b/goDep.redoGoMod.go index d75f32a..ab55fa9 100644 --- a/goDep.redoGoMod.go +++ b/goDep.redoGoMod.go @@ -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() -- cgit v1.2.3