diff options
| author | Jeff Carr <[email protected]> | 2025-09-03 13:54:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-03 13:54:36 -0500 |
| commit | 98cc06ab8fc98b728107fff135b107dcdb56fb2a (patch) | |
| tree | cabb2d4c475868ad783578d958ec3e1e5946f690 /patchset.Get.go | |
| parent | 888442708cefe9e089bb97a99e696cb6995bfbab (diff) | |
lots of Init() cleanups
Diffstat (limited to 'patchset.Get.go')
| -rw-r--r-- | patchset.Get.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/patchset.Get.go b/patchset.Get.go index 91d3bdd..5904914 100644 --- a/patchset.Get.go +++ b/patchset.Get.go @@ -44,6 +44,15 @@ func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) { log.Info("new patchset", pset.Name, pset.Uuid) pset.State = "new" foundnew = true + if pset == nil { + log.Warn("OH NO! pset == nil") + continue + } + if f.Patchsets == nil { + log.Warn("OH NO! f.Patchsets == nil") + continue + } + f.Patchsets.Append(pset) } else { log.Info("patchset already on disk", found.Name, found.State) pset.State = found.State @@ -53,7 +62,6 @@ func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) { } } if foundnew { - log.Info("should save these here") f.SavePatchsets() } } |
