Skip to content

Commit

Permalink
Rewrote comparison for Swift version
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Aug 9, 2023
1 parent 6d60911 commit eeb642c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Settings/ViewControllers/Snippets/SnippetsConfigView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ import Foundation
import SwiftUI

fileprivate func openLocationInFilesApp(location: BKSnippetDefaultLocation) {
let path = if location == .iCloud {
BlinkPaths.iCloudSnippetsLocationURL()!.relativePath
let path: String = { if location == .iCloud {
return BlinkPaths.iCloudSnippetsLocationURL()!.relativePath
} else {
BlinkPaths.localSnippetsLocationURL()!.relativePath
}
return BlinkPaths.localSnippetsLocationURL()!.relativePath
} }()

let fm = FileManager.default
if !fm.fileExists(atPath: path) {
Expand Down

0 comments on commit eeb642c

Please sign in to comment.