diff --git a/audit/audit.go b/audit/audit.go index 901ec195a93e3b59bf08b31628f0653269f58dcb..80a14e0e7a21998dbfc2762a6070626b0decae4b 100644 --- a/audit/audit.go +++ b/audit/audit.go @@ -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]