Skip to content

Commit

Permalink
Revert "replace dict deletion with nil setting"
Browse files Browse the repository at this point in the history
This reverts commit 34cedfc.
  • Loading branch information
cameroncaci committed Feb 4, 2025
1 parent 34cedfc commit 787ebed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pdfcpu/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func EnsureOutlines(ctx *model.Context, fName string, append bool) error {

if f == nil || l == nil {
// Remove empty outline dict
d["First"] = nil
d["Last"] = nil
delete(d, "First")
delete(d, "Last")
} else {
d["First"] = *f
d["Last"] = *l
Expand Down

0 comments on commit 787ebed

Please sign in to comment.