3 ms·
Possibly even just waypoint = waypointsMatches[0] Without even mentioning that waypointsMatches might have multiple elements. This is why I always consid
by crubier 2y ago
Possibly even just
waypoint = waypointsMatches[0]
Without even mentioning that waypointsMatches might have multiple elements.
This is why I always consider [0] to be a code smell. It doesn't have a name afaik, but it should.
- gopher_space 2y agoRace condition?
- deleted 2y ago[deleted]
- CaptainFever 2y agoSilently ignoring conditions where there are multiple or zero elements?