Skip to content

Commit

Permalink
Prevent log of nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
sarumaj authored Oct 5, 2023
1 parent 66f761f commit dea224d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/restclient/rest_client_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func getPagedWorkUnit[T any](c RESTClient, ep apiEndpoint, ctx context.Context,
return nil, nil
}

if err != nil || len(paged) == 0 {
if err != nil {
logger.Error(err)
return nil, err
}
Expand Down

0 comments on commit dea224d

Please sign in to comment.