removed warnings

This commit is contained in:
Rafael Miller 2025-01-03 17:12:30 -03:00 committed by GitHub
parent b223f6ae68
commit 12cd9f083c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -566,7 +566,6 @@ export default class FirecrawlApp {
let data = statusData.data; let data = statusData.data;
while (typeof statusData === 'object' && 'next' in statusData) { while (typeof statusData === 'object' && 'next' in statusData) {
if (data.length === 0) { if (data.length === 0) {
console.warn("Expected 'data' is missing.")
break break
} }
statusData = (await this.getRequest(statusData.next, headers)).data; statusData = (await this.getRequest(statusData.next, headers)).data;
@ -817,7 +816,6 @@ export default class FirecrawlApp {
let data = statusData.data; let data = statusData.data;
while (typeof statusData === 'object' && 'next' in statusData) { while (typeof statusData === 'object' && 'next' in statusData) {
if (data.length === 0) { if (data.length === 0) {
console.warn("Expected 'data' is missing.")
break break
} }
statusData = (await this.getRequest(statusData.next, headers)).data; statusData = (await this.getRequest(statusData.next, headers)).data;
@ -1006,7 +1004,6 @@ export default class FirecrawlApp {
let data = statusData.data; let data = statusData.data;
while (typeof statusData === 'object' && 'next' in statusData) { while (typeof statusData === 'object' && 'next' in statusData) {
if (data.length === 0) { if (data.length === 0) {
console.warn("Expected 'data' is missing.")
break break
} }
statusResponse = await this.getRequest(statusData.next, headers); statusResponse = await this.getRequest(statusData.next, headers);