I keep running into these two lint errors and not knowing what to do
29:3 warning Expected catch() or return promise/catch-or-return
29:3 error Each then() should return a value or throw promise/always-return
In the first case I often don't care about the error state and just want it to fail and bugsnag notify when that happens.
In the second case I would be doing something with the result value of a promise, but don't want to chain the promise. Why would I need to return something in that case?
@lemonmade
I keep running into these two lint errors and not knowing what to do
In the first case I often don't care about the error state and just want it to fail and bugsnag notify when that happens.
In the second case I would be doing something with the result value of a promise, but don't want to chain the promise. Why would I need to return something in that case?
@lemonmade