We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f174810 commit 36a9d35Copy full SHA for 36a9d35
premium/usage.go
@@ -227,7 +227,8 @@ func (u *BatchUpdater) HasQuota(ctx context.Context) (bool, error) {
227
if usage.StatusCode() != http.StatusOK {
228
return false, fmt.Errorf("failed to get usage: %s", usage.Status())
229
}
230
- return *usage.JSON200.RemainingRows > 0, nil
+ hasQuota := usage.JSON200.RemainingRows == nil || *usage.JSON200.RemainingRows > 0
231
+ return hasQuota, nil
232
233
234
func (u *BatchUpdater) Close() error {
0 commit comments