diff --git a/audit/audit.go b/audit/audit.go index 6deca7dd5afea76b09d286cbda6d0317df0488f1..39eb87fa48d3d4149916e76ac1b2eb52f3d273d5 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") }