Skip to content

Commit

Permalink
linting...
Browse files Browse the repository at this point in the history
  • Loading branch information
traines-source committed Jan 20, 2025
1 parent ff559c8 commit 1e7977a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions parse/journey.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e7977a

Please sign in to comment.