Skip to content

Commit 3cbe661

Browse files
mstephen19B4nan
andauthored
Update content/academy/expert_scraping_with_apify/solutions/using_api_and_client.md
Co-authored-by: Martin Adámek <[email protected]>
1 parent e389f3a commit 3cbe661

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

content/academy/expert_scraping_with_apify/solutions/using_api_and_client.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ const withAPI = async () => {
212212
return Actor.setValue('OUTPUT', data, { contentType: 'text/csv' });
213213
};
214214

215-
if (useClient) await withClient();
216-
else await withAPI();
215+
if (useClient) {
216+
await withClient();
217+
} else {
218+
await withAPI();
219+
}
217220

218221
await Actor.exit();
219222
```

0 commit comments

Comments
 (0)