File tree 1 file changed +4
-4
lines changed
src/main/java/com/conveyal/r5/analyst/scenario
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,15 @@ public boolean resolve(TransportNetwork network) {
61
61
for (TripPattern tripPattern : network .transitLayer .tripPatterns ) {
62
62
String feedId = feedIdForTripPattern (tripPattern );
63
63
if (isNullOrEmpty (feedId )) {
64
- errors . add ("Could not find feed ID prefix in route ID " + tripPattern .routeId );
64
+ addError ("Could not find feed ID prefix in route ID " + tripPattern .routeId );
65
65
continue ;
66
66
}
67
67
GTFSFeed feed = feedForUnscopedId .get (feedId );
68
68
if (feed == null ) {
69
- errors . add ("Could not find feed for ID " + feedId );
69
+ addError ("Could not find feed for ID " + feedId );
70
70
}
71
71
}
72
- return errors . size () > 0 ;
72
+ return hasErrors () ;
73
73
}
74
74
75
75
@ Override
@@ -133,7 +133,7 @@ public boolean apply(TransportNetwork network) {
133
133
// Store the resulting precomputed information in a SelectedLink instance on the TransportNetwork.
134
134
// This could also be on the TransitLayer, but we may eventually want to include street edges in SelectedLink.
135
135
network .selectedLink = new SelectedLink (network .transitLayer , hopsInTripPattern );
136
- return errors . size () > 0 ;
136
+ return hasErrors () ;
137
137
}
138
138
139
139
// By returning false for both affects methods, we make a very shallow copy of the TransitNetwork for efficiency.
You can’t perform that action at this time.
0 commit comments