Skip to content

Commit

Permalink
apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
miklcct committed Dec 17, 2024
1 parent 78312cb commit 789d7a8
Show file tree
Hide file tree
Showing 6 changed files with 4,431 additions and 1,551 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
import org.opentripplanner.apis.gtfs.generated.GraphQLTypes;
import org.opentripplanner.apis.gtfs.mapping.PickDropMapper;
import org.opentripplanner.apis.gtfs.model.StopInPatternModel;
import org.opentripplanner.transit.model.network.TripPattern;

public class StopInPatternImpl implements GraphQLDataFetchers.GraphQLStopInPattern {

@Override
public DataFetcher<GraphQLTypes.GraphQLPickupDropoffType> dropoffType() {
public DataFetcher<GraphQLTypes.GraphQLPickupDropoffType> dropOffType() {
return environment -> PickDropMapper.map(getSource(environment).dropoffType());
}

Expand All @@ -20,11 +19,6 @@ public DataFetcher<Integer> indexInPattern() {
return environment -> getSource(environment).indexInPattern();
}

@Override
public DataFetcher<TripPattern> pattern() {
return environment -> getSource(environment).pattern();
}

@Override
public DataFetcher<GraphQLTypes.GraphQLPickupDropoffType> pickupType() {
return environment -> PickDropMapper.map(getSource(environment).pickupType());
Expand Down
Loading

0 comments on commit 789d7a8

Please sign in to comment.