mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
linting...
This commit is contained in:
parent
ff559c83dd
commit
1e7977a8bb
1 changed files with 5 additions and 3 deletions
|
@ -30,13 +30,15 @@ const parseLocationsFromCtxRecon = (ctx, j) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const trimJourneyId = (journeyId) => {
|
const trimJourneyId = (journeyId) => {
|
||||||
if (!journeyId) return null;
|
if (!journeyId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
const endOfHafasId = journeyId.lastIndexOf('$');
|
const endOfHafasId = journeyId.lastIndexOf('$');
|
||||||
if (endOfHafasId != -1) {
|
if (endOfHafasId != -1) {
|
||||||
return journeyId.substring(0, endOfHafasId+1);
|
return journeyId.substring(0, endOfHafasId + 1);
|
||||||
}
|
}
|
||||||
return journeyId;
|
return journeyId;
|
||||||
}
|
};
|
||||||
|
|
||||||
const parseJourney = (ctx, jj) => { // j = raw journey
|
const parseJourney = (ctx, jj) => { // j = raw journey
|
||||||
const {profile, opt} = ctx;
|
const {profile, opt} = ctx;
|
||||||
|
|
Loading…
Add table
Reference in a new issue