api
api copied to clipboard
Removing async from `task()`
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