Configured and applied SwiftFormat

This commit is contained in:
Stefan Ceriu
2022-09-27 10:17:22 +03:00
committed by Stefan Ceriu
parent ff2e6ddfa7
commit 43c28d23b7
663 changed files with 2329 additions and 2840 deletions
@@ -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