From 69488d7a611a3fd1b69766f6a9ff711d2783c856 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@privategrity.com>
Date: Wed, 22 Dec 2021 06:42:06 +0000
Subject: [PATCH] fixed manyNotification being too long

---
 bindings/notifications.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings/notifications.go b/bindings/notifications.go
index 311673a25..923f33c99 100644
--- a/bindings/notifications.go
+++ b/bindings/notifications.go
@@ -41,8 +41,8 @@ type ManyNotificationForMeReport struct {
 }
 
 func (mnfmr *ManyNotificationForMeReport) Get(i int) (*NotificationForMeReport, error) {
-	if len(mnfmr.many)>=i{
-		return nil, errors.New("Cannot get, too long")
+	if i>=len(mnfmr.many){
+		return nil, errors.New("Cannot get, index out of range")
 	}
 	return mnfmr.many[i], nil
 }
-- 
GitLab