Skip to content

Commit

Permalink
Fix warnings: No 'async' operations occur within 'await' expression
Browse files Browse the repository at this point in the history
Fixes #765
  • Loading branch information
aaronbrethorst committed Nov 30, 2024
1 parent eaada00 commit 6fc0a02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OBAKit/Mapping/MapRegionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public class MapRegionManager: NSObject,
}
}

var mapRegion = await mapView.region
var mapRegion = mapView.region
mapRegion.span.latitudeDelta *= preferredLoadDataRegionFudgeFactor
mapRegion.span.longitudeDelta *= preferredLoadDataRegionFudgeFactor

Expand Down
2 changes: 1 addition & 1 deletion OBAKit/Onboarding/DataMigration/DataMigrationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public struct DataMigrationView: View, OnboardingView {

private func handleReportDismiss() {
Task {
await self.dismiss()
self.dismiss()
}
}

Expand Down
4 changes: 2 additions & 2 deletions OBAKit/Orchestration/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class Application: CoreApplication, PushServiceDelegate {
}

Task(priority: .userInitiated) {
await ProgressHUD.show()
ProgressHUD.show()

do {
let arrDep = try await apiService.getTripArrivalDepartureAtStop(stopID: deepLink.stopID, tripID: deepLink.tripID, serviceDate: deepLink.serviceDate, vehicleID: deepLink.vehicleID, stopSequence: deepLink.stopSequence).entry
Expand All @@ -126,7 +126,7 @@ public class Application: CoreApplication, PushServiceDelegate {
await self.displayError(error)
}

await ProgressHUD.dismiss()
ProgressHUD.dismiss()
}
}

Expand Down

0 comments on commit 6fc0a02

Please sign in to comment.