From 8e325339bff2e090d530dba1cd8cb969a6c68469 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 23 Apr 2024 15:11:51 +0100 Subject: [PATCH] Fix typing on generateServiceDetail function --- cif/convert.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cif/convert.go b/cif/convert.go index 4160353..2866d12 100644 --- a/cif/convert.go +++ b/cif/convert.go @@ -21,7 +21,7 @@ func ConvertServiceType(input *upstreamApi.JsonScheduleV1, vstp bool) (*database PlanSpeed: parseSpeed(&input.ScheduleSegment.CifSpeed), ScheduleStartDate: ParseCifDate(&input.ScheduleStartDate, "start"), ScheduleEndDate: ParseCifDate(&input.ScheduleEndDate, "end"), - ServiceDetail: generateServiceDetail(&input.ScheduleSegment.CifTrainClass, &input.ScheduleSegment.SignallingId, &input.ScheduleSegment.CifCateringCode, &input.ScheduleSegment.CifSleepers, &input.ScheduleSegment.CifOperatingCharacteristics, vstp), + ServiceDetail: generateServiceDetail(&input.ScheduleSegment.CifTrainClass, &input.ScheduleSegment.SignallingId, &input.ScheduleSegment.CifCateringCode, &input.ScheduleSegment.CifSleepers, vstp), DaysRun: parseDaysRun(&input.ScheduleDaysRun), Stops: parseStops(&input.ScheduleSegment.ScheduleLocation), } @@ -85,8 +85,7 @@ func isPublic(input *upstreamApi.CifScheduleLocation) bool { // Generates a ServiceDetail struct based on the input func generateServiceDetail( cifTrainClass, signallingId, - cateringCode, sleepers, - operatingCharacteristics *string, + cateringCode, sleepers *string, vstp bool, ) database.ServiceDetail { return database.ServiceDetail{