mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
Fix build: return RouteSpeedContext, not [], in fetchRouteSpeedContext
Leftover empty-array return from the pre-refactor signature caused 'cannot convert [Any] to RouteSpeedContext' at MapSelectionView.swift:338.
This commit is contained in:
parent
7880604f2d
commit
69d7a1d9cc
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ private func fetchRouteSpeedContext(
|
|||
|
||||
var components = URLComponents(url: OpenStreetMapSpeedLimitService.endpoint, resolvingAgainstBaseURL: false)
|
||||
components?.queryItems = [URLQueryItem(name: "data", value: query)]
|
||||
guard let url = components?.url else { return [] }
|
||||
guard let url = components?.url else { return RouteSpeedContext(ways: [], busStops: []) }
|
||||
|
||||
let (data, response) = try await URLSession.shared.data(from: url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue