api icon indicating copy to clipboard operation
api copied to clipboard

Removing async from `task()`

Open yashshah1 opened this issue 4 years ago • 0 comments

https://github.com/covid19india/api/blob/7c1f7f195a4519592c32f9a7b03638572b4ac218/lib/index.js#L23

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

yashshah1 avatar Dec 09 '20 13:12 yashshah1