linting...

This commit is contained in:
Traines 2025-01-20 20:32:38 +00:00
parent ff559c83dd
commit 1e7977a8bb

View file

@ -30,13 +30,15 @@ const parseLocationsFromCtxRecon = (ctx, j) => {
};
const trimJourneyId = (journeyId) => {
if (!journeyId) return null;
if (!journeyId) {
return null;
}
const endOfHafasId = journeyId.lastIndexOf('$');
if (endOfHafasId != -1) {
return journeyId.substring(0, endOfHafasId+1);
return journeyId.substring(0, endOfHafasId + 1);
}
return journeyId;
}
};
const parseJourney = (ctx, jj) => { // j = raw journey
const {profile, opt} = ctx;