Skip to content

Commit

Permalink
refactor(st interpolation): update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Nov 21, 2023
1 parent da9cc6b commit 5fd655d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,7 @@ private int interpolateTimesFromTimepoints(
}

double timepointSpeed = (nextTimepoint.shape_dist_traveled - lastTimepoint.shape_dist_traveled) / nextTimepoint.default_travel_time;
int travelTime = (int) Math.round((patternStop.shape_dist_traveled - previousShapeDistTraveled) / timepointSpeed);
return travelTime;
return (int) Math.round((patternStop.shape_dist_traveled - previousShapeDistTraveled) / timepointSpeed);
}

/**
Expand Down

0 comments on commit 5fd655d

Please sign in to comment.