Skip to content
Snippets Groups Projects
Commit 1dcb53cf authored by Ruaan Burger's avatar Ruaan Burger
Browse files

Rename temporary error variable to prevent weirdness

parent a4db9465
No related branches found
No related tags found
1 merge request!25Rename temporary error variable to prevent weirdness
...@@ -146,7 +146,7 @@ func GetAllChanges(original interface{}, new interface{}) (map[string]interface{ ...@@ -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 // 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 // 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 := "" positionOfSubArray := ""
for sub := 0; sub <= pathIndex; sub++ { for sub := 0; sub <= pathIndex; sub++ {
positionOfSubArray = positionOfSubArray + change.Path[sub] positionOfSubArray = positionOfSubArray + change.Path[sub]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment