diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 16:40:41 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 16:40:41 -0600 |
| commit | 6b42d07949e7220223662c5e5e01d1223aaf26b9 (patch) | |
| tree | e27078ee45eff827b834b8dc6997357e83b8435e /goDep.redoGoMod.go | |
| parent | 412658698a6d1ad09d64723e9a10e676c77afa94 (diff) | |
avoid nil panic here
Diffstat (limited to 'goDep.redoGoMod.go')
| -rw-r--r-- | goDep.redoGoMod.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
