no-return-call-within-async-try
const fetch = async () => {
try {
return doSomethingAsync() // <-- this should be awaited
} catch (error) {
console.log(error) // <-- this doesn't run if doSomethingAsync fails
}
}
no-return-call-within-async-try
const fetch = async () => {
try {
return doSomethingAsync() // <-- this should be awaited
} catch (error) {
console.log(error) // <-- this doesn't run if doSomethingAsync fails
}
}