From 0730471d53c94cee6f9b53fc285710c11f34c21f Mon Sep 17 00:00:00 2001 From: Lauren Leach Date: Thu, 8 Aug 2024 14:24:51 -0700 Subject: [PATCH] remove unnecessary 0 check --- pkg/servicenow/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/servicenow/client.go b/pkg/servicenow/client.go index 7fe9e69..dba37a3 100644 --- a/pkg/servicenow/client.go +++ b/pkg/servicenow/client.go @@ -468,7 +468,7 @@ func (c *Client) doRequest(ctx context.Context, urlAddress string, method string if err != nil { return "", err } - if token < totalCount && totalCount != 0 && token != 0 { + if token < totalCount { pageToken = offset } break