Skip to content

Commit

Permalink
Fix warning: Expression is 'async' but is not marked with 'await'
Browse files Browse the repository at this point in the history
Fixes #768
  • Loading branch information
aaronbrethorst committed Nov 30, 2024
1 parent e33d214 commit 8d7290c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OBAKit/Search/SearchRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class SearchManager: NSObject {
private func searchAddress(request: SearchRequest) async {
guard
let apiService = application.apiService,
let mapRect = application.mapRegionManager.lastVisibleMapRect
let mapRect = await application.mapRegionManager.lastVisibleMapRect
else {
return
}
Expand All @@ -103,7 +103,7 @@ public class SearchManager: NSObject {
private func searchRoute(request: SearchRequest) async {
guard
let apiService = application.apiService,
let mapRect = application.mapRegionManager.lastVisibleMapRect
let mapRect = await application.mapRegionManager.lastVisibleMapRect
else {
return
}
Expand Down

0 comments on commit 8d7290c

Please sign in to comment.