Skip to content
Snippets Groups Projects

Rename temporary error variable to prevent weirdness

Merged Ruaan Burger requested to merge rename-temporary-variable into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -146,7 +146,7 @@ func GetAllChanges(original interface{}, new interface{}) (map[string]interface{
// If this "key" is integer-like, we handle it a little differently to ensure related data ends up
// together and formatted as you would expect JSON arrays to look
if _, err = strconv.Atoi(change.Path[pathIndex]); err == nil {
if _, convErr := strconv.Atoi(change.Path[pathIndex]); convErr == nil {
positionOfSubArray := ""
for sub := 0; sub <= pathIndex; sub++ {
positionOfSubArray = positionOfSubArray + change.Path[sub]
Loading