Skip to content

Commit

Permalink
fix: Mutate recursive keys correctly. #441
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Jul 21, 2023
1 parent 1c53e1e commit 26e8342
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions card.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,6 @@ func fillFormCardBufs(data map[string]any, outData map[string]any, bufs *[]BufD,
*bufs = append(*bufs, b.dump())
}
}
//lint:ignore SA4006 this function is recursive so mutation is necessary.
keys = keys[:len(keys)-1]
}

0 comments on commit 26e8342

Please sign in to comment.