You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tbh I half want to say "no, it only cares about syntax-level conditions" along with an example of how you can easily write a function with a callback, but valid-expect-in-promise looks for promises and hasn't had a lot of complaints about false positives, so we might be able to catch this without too much trouble.
We recently added
no-conditional-expect
to our app, and in trying to eliminate try / catch blocks, discovered that the following is possible.Is that expected or is that a loophole and skirting the intentions of the rule?
The text was updated successfully, but these errors were encountered: