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
Something like throwing a ReferenceError when findTarget returns undefiend (and findTargets returns empty Array) would do the work. I've checked that there is not throw Error in the whole project, so I assume it's not the desired solution.
I know it's an old issue, but there is any code style definition about how to implement it?
Activity
Scipion commentedon Dec 28, 2020
Something like throwing a
ReferenceErrorwhenfindTargetreturnsundefiend(andfindTargetsreturns empty Array) would do the work. I've checked that there is not throw Error in the whole project, so I assume it's not the desired solution.I know it's an old issue, but there is any code style definition about how to implement it?