Closed mchuahua closed 3 months ago
@mchuahua Thank you for flagging this issue. Looking into the history of this file, this if statement that you flagged was used to catch the case when the router failed after retrying with a max bounding box. This was made more explicit in the previous if statement; however, the old if statement remained.
I have raised PR #2604 which removes this second if statement which should not have been left behind.
Thanks! Fixed and closing.
Expected Behaviour
Hi, in connection_router.cpp, line 119-122 has unreachable code.
Current Behaviour
I believe line 116 should return the correct tuple instead, which is reachable code.
Possible Solution
Remove lines 119-122 because line 124 returns what is expected when cheapest is found. I may be wrong though, which is why I didn't do a pr.
Steps to Reproduce
in connection_router.cpp, lines 100-122 below:
Context
Your Environment