Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Fixed lint errors

Jan Curn9d3f5e3bbb09
diff --git a/src/actor.js b/src/actor.js
index 3f3fcb959..c046dc53f 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -130,7 +130,7 @@ export const getValue = (key, callback = null) => {
promise: promisePrototype,
key,
})
- .then(output => output ? output.body : null);
+ .then(output => (output ? output.body : null));
});
}
diff --git a/test/actor.js b/test/actor.js
index 33662b222..7d40a4729 100644
--- a/test/actor.js
+++ b/test/actor.js
@@ -1130,7 +1130,7 @@ describe('Apify.call()', () => {
const runningRun = Object.assign({}, run, { status: 'RUNNING' });
const finishedRun = Object.assign({}, run, { status: ACT_TASK_STATUSES.SUCCEEDED });
const input = { a: 'b' };
- const output = { body: 'some-output' } ;
+ const output = { body: 'some-output' };
const expected = Object.assign({}, finishedRun, { output });
const build = 'xxx';