Skip to content

Commit a0800cd

Browse files
lint
1 parent 10d4ff4 commit a0800cd

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

lib/editor/components/EntityDetails.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Props = {
2525
activeEntity: Entity,
2626
activeEntityId: number,
2727
activePattern: Pattern,
28-
activePatternStops: Array<GtfsStop|GtfsLocation|GtfsLocationGroup>,
28+
activePatternStops: Array<GtfsStop | GtfsLocation | GtfsLocationGroup>,
2929
deleteEntity: typeof activeActions.deleteGtfsEntity,
3030
entities: Array<Entity>,
3131
entityEdited: boolean,

lib/editor/components/map/PatternLocationMarker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as stopStrategiesActions from '../../actions/map/stopStrategies'
1010
import * as tripPatternActions from '../../actions/tripPattern'
1111
import MinuteSecondInput from '../MinuteSecondInput'
1212
import PatternStopButtons from '../pattern/PatternStopButtons'
13-
import type {ControlPoint, Feed, GtfsLocation, Pattern, PatternStop } from '../../../types'
13+
import type { ControlPoint, Feed, GtfsLocation, Pattern, PatternStop } from '../../../types'
1414
import { groupLocationShapePoints } from '../../util/location'
1515

1616
import PolygonWithLabel from './PolygonWithLabel'

lib/editor/components/pattern/PatternStopCard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { getEntityName, getAbbreviatedStopName, getTableById } from '../../util/
2323
import MinuteSecondInput from '../MinuteSecondInput'
2424
import { getComponentMessages, getGtfsSpecField } from '../../../common/util/config'
2525
import type { Feed, Pattern } from '../../../types'
26-
import type {AppState, RouterProps } from '../../../types/reducers'
26+
import type { AppState, RouterProps } from '../../../types/reducers'
2727

2828
import NormalizeStopTimesTip from './NormalizeStopTimesTip'
2929
import PatternStopButtons from './PatternStopButtons'

lib/editor/components/pattern/TripPatternList.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class PatternRow extends Component<RowProps> {
163163
if (name) {
164164
const showStopCount = patternStops
165165
const stopCount = showStopCount ? (
166-
(patternStops ? patternStops.length : 0)
166+
(patternStops ? patternStops.length : 0)
167167
) : 0
168168
patternName = `${`${name.length > 29
169169
? name.substr(0, 29) + '…'

lib/editor/components/pattern/TripPatternViewer.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export default class TripPatternViewer extends Component<Props> {
4343
ps.stopId
4444
? ps.stopId
4545
: ps.locationId
46-
? ps.locationId
47-
: ps.locationGroupId
48-
? ps.locationGroupId
49-
: ""
50-
}${ps.stopSequence}`,
51-
};
52-
});
46+
? ps.locationId
47+
: ps.locationGroupId
48+
? ps.locationGroupId
49+
: ''
50+
}${ps.stopSequence}`
51+
}
52+
})
5353
return (
5454
<div>
5555
<EditableTextField

lib/editor/util/gtfs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export function getEntityBounds (entity: any, stops?: Array<GtfsStop>, locations
233233
if (stops && pattern.patternStops && pattern.patternStops.length > 0) {
234234
// finds matching locations and coordinates in state + concats all locations into one array of coordinate objects
235235

236-
const locationCoordinates = pattern.patternStops.filter(ps=>ps.locationId !== null)
236+
const locationCoordinates = pattern.patternStops.filter(ps => ps.locationId !== null)
237237
.map(pl => locations ? locations.find(l => l.location_id === pl.locationId) : null)
238238
.flatMap(pl => pl ? pl.location_shapes : null)
239239

lib/editor/util/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22
import type { LatLng } from 'leaflet'
33

4-
import type { LocationShape, Pattern, PatternStop } from '../../types'
4+
import type { LocationShape } from '../../types'
55

66
export const groupLocationShapePoints = (locationShapes: LocationShape) => locationShapes
77
.reduce(

lib/gtfs/util/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {GTFS_GRAPHQL_PREFIX} from '../../common/constants'
66
import {getGtfsSpec} from '../../common/util/config'
77
import {routeSearch, stopSearch} from '../util/graphql'
88
import {getHeaders} from '../../common/util/util'
9-
import type {GtfsRoute, GtfsStop, Pattern, PatternStop, User} from '../../types'
9+
import type {GtfsRoute, GtfsStop, User} from '../../types'
1010

1111
export function getEntityIdField (type: string): string {
1212
if (!type) return ''
@@ -235,7 +235,6 @@ export function getEntityTableString (type: string): string {
235235
}
236236
}
237237

238-
239238
/**
240239
* Request stop and route entities from GraphQL endpoint.
241240
* @param {String} textInput search string

0 commit comments

Comments
 (0)