Skip to content

Commit 05065f9

Browse files
committed
Remove redundant fs function calls
1 parent 1a120bf commit 05065f9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/data-search.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ export async function getData () {
4242
const collection = await Promise.all(config.map(doSearches));
4343

4444
// Output all search result papers into data.json
45-
const fileHandle = await fs.openSync('example-data/data.json', 'w');
4645
await writeFormattedJSON(collection, 'example-data/data.json');
47-
fs.closeSync(fileHandle);
48-
49-
// return collection;
5046
}
5147

52-
await getData();
48+
getData();

0 commit comments

Comments
 (0)