Skip to content

Commit

Permalink
[refactor] 조건 오류 수정 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeyoung22 committed Aug 21, 2023
1 parent 8e94e66 commit cb99c1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static RouteLength from(List<Point> points) {
}

private Double calculateLength(List<Point> points) {
if (points.isEmpty() || points.size() == 1) {
if (points == null || points.size() <= 1) {
throw new TripException(ONE_OR_NO_POINT);
}

Expand Down

0 comments on commit cb99c1a

Please sign in to comment.