Skip to content

Commit

Permalink
Fixed formatting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Feb 17, 2025
1 parent ccb8931 commit f185cf1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SharePointDriveListViewModel: SingleSectionTableViewModel {

private func fetchSiteAndDrives() {
guard let urlComponents = URL(string: sharePointURL),
let hostName = urlComponents.host else {
let hostName = urlComponents.host else {
print("Invalid SharePoint URL")
return
}
Expand All @@ -65,11 +65,11 @@ class SharePointDriveListViewModel: SingleSectionTableViewModel {
}

override func getHeaderTitle(for section: Int) -> String? {
guard section == 0 else { return nil }
return LocalizedString.getValue("addVault.selectDrive.navigation.title")
}
guard section == 0 else { return nil }
return LocalizedString.getValue("addVault.selectDrive.navigation.title")
}

override var title: String? {
return LocalizedString.getValue("addVault.selectDrive.header.description")
}
}
}
4 changes: 2 additions & 2 deletions Cryptomator/AddVault/CreateNewVault/URLValidator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public enum URLValidator {
}

guard url.scheme == "https",
let host = url.host,
host.contains(".sharepoint.com") else {
let host = url.host,
host.contains(".sharepoint.com") else {
throw URLValidatorError.invalidURLFormat
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Created by Majid Achhoud on 07.01.25.
//

import Foundation
import CryptomatorCloudAccessCore
import Combine
import CryptomatorCloudAccessCore
import Foundation

public enum MicrosoftGraphDriveManagerError: Error {
case driveDuplicate(existingIdentifier: String)
Expand Down

0 comments on commit f185cf1

Please sign in to comment.