mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+4
-6
@@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -14,12 +14,11 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CoreLocation
|
||||
import Foundation
|
||||
import MatrixSDK
|
||||
|
||||
class LocationSharingService: LocationSharingServiceProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
// MARK: Private
|
||||
@@ -27,7 +26,7 @@ class LocationSharingService: LocationSharingServiceProtocol {
|
||||
private let session: MXSession
|
||||
|
||||
private var userLocationService: UserLocationServiceProtocol? {
|
||||
return self.session.userLocationService
|
||||
session.userLocationService
|
||||
}
|
||||
|
||||
// MARK: Public
|
||||
@@ -41,8 +40,7 @@ class LocationSharingService: LocationSharingServiceProtocol {
|
||||
// MARK: - Public
|
||||
|
||||
func requestAuthorization(_ handler: @escaping LocationAuthorizationHandler) {
|
||||
guard let userLocationService = self.userLocationService else {
|
||||
|
||||
guard let userLocationService = userLocationService else {
|
||||
MXLog.error("[LocationSharingService] No userLocationService found for the current session")
|
||||
handler(LocationAuthorizationStatus.unknown)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user