From 1dcb53cf899b49d58eeaa9ad7d34c69cb08bff18 Mon Sep 17 00:00:00 2001 From: Ruaan <ruaan@uafrica.com> Date: Mon, 11 Apr 2022 10:19:47 +0200 Subject: [PATCH] Rename temporary error variable to prevent weirdness --- audit/audit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audit/audit.go b/audit/audit.go index 901ec19..80a14e0 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] -- GitLab