From 1e7977a8bb021a1e6efafc0d95591292beaf9f42 Mon Sep 17 00:00:00 2001 From: Traines Date: Mon, 20 Jan 2025 20:32:38 +0000 Subject: [PATCH] linting... --- parse/journey.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parse/journey.js b/parse/journey.js index 48c0ab7c..7acd05a1 100644 --- a/parse/journey.js +++ b/parse/journey.js @@ -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;