Skip to content

Commit

Permalink
STYLE: NAV-131 - Add assert to prevent IDE complaining.
Browse files Browse the repository at this point in the history
  • Loading branch information
clukas1 committed Aug 23, 2024
1 parent c693bd8 commit b398ce1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public List<Connection> getConnections(@RequestParam(required = false) String so
} else if (targetStop != null) {
return map(service.getConnections(sourceCoordinate, targetStop, dateTime, map(timeType), config));
} else {
assert sourceCoordinate != null; // never happens --> see RoutingRequestValidator.validateStopParameters
RoutingRequestValidator.validateCoordinates(sourceCoordinate, targetCoordinate);
return map(service.getConnections(sourceCoordinate, targetCoordinate, dateTime, map(timeType), config));
}
Expand Down

0 comments on commit b398ce1

Please sign in to comment.