From 26e623ae169f4461088b71c5c672f1725e25af61 Mon Sep 17 00:00:00 2001
From: Johan de Klerk <johan@shiplogic.com>
Date: Mon, 5 Sep 2022 09:31:28 +0200
Subject: [PATCH] Fixed compile error

---
 audit/audit.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audit/audit.go b/audit/audit.go
index 6deca7d..39eb87f 100644
--- a/audit/audit.go
+++ b/audit/audit.go
@@ -27,7 +27,7 @@ func VerifyAuditEvents(original interface{}, new interface{}) error {
 	}
 
 	if new != nil {
-		structValue = reflect.ValueOf(new)
+		structValue := reflect.ValueOf(new)
 		if structValue.Kind() != reflect.Struct {
 			return errors.New("new object is not of type struct")
 		}
-- 
GitLab