Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Removing async from task() #444

Open
yashshah1 opened this issue Dec 9, 2020 · 0 comments
Open

Removing async from task() #444

yashshah1 opened this issue Dec 9, 2020 · 0 comments
Assignees

Comments

@yashshah1
Copy link

const writeData = async ({ file, data }) => {

in lib/index.js, the function task() is marked as async when it isn't actually asynchronous. You can choose to remove the async from the definition and await from all the subsequent calls, or convert it to an async function by using the async versions of the file i/o functions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants