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
For our preferred style, we'd like to adjust the style of async code:
switch to async/await, avoid lower level new Promise/resolve+reject where possible
errors should be thrown/passed to reject where possible, avoid things like return {error: error} or resolve(error); handle them by catching instead of if (result.error)
For our preferred style, we'd like to adjust the style of async code:
new Promise
/resolve
+reject
where possiblethrow
n/passed toreject
where possible, avoid things likereturn {error: error}
orresolve(error)
; handle them bycatch
ing instead ofif (result.error)
follows #156
The text was updated successfully, but these errors were encountered: