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