Skip to content

Commit

Permalink
fix makeslice cap out of range error
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Nov 6, 2024
1 parent c4dc459 commit 91b2f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cron/action/convert_flight_schedules.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func convertFlightSchedulesToFlights(queryDate xtime.LocalDate, lastModified tim
}
}

result := make([]*common.Flight, 0, len(lookup)-len(codeShareIds))
result := make([]*common.Flight, 0, len(lookup))
for fid, f := range lookup {
if _, ok := codeShareIds[fid]; !ok {
result = append(result, f)
Expand Down

0 comments on commit 91b2f84

Please sign in to comment.