Skip to content

Commit d1731c6

Browse files
committed
Fix swift-format complaints
1 parent 9f8352b commit d1731c6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

OpenHaystack/OpenHaystack/HaystackApp/AccessoryController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class AccessoryController: ObservableObject {
9393
return accessory
9494
}
9595

96-
/// Export the accessories property list so it can be imported at another location
96+
/// Export the accessories property list so it can be imported at another location.
9797
func export(accessories: [Accessory]) throws -> URL {
9898
let propertyList = try PropertyListEncoder().encode(accessories)
9999

@@ -120,7 +120,7 @@ class AccessoryController: ObservableObject {
120120
throw ImportError.cancelled
121121
}
122122

123-
/// Let the user select a file to import the accessories exported by another OpenHaystack instance
123+
/// Let the user select a file to import the accessories exported by another OpenHaystack instance.
124124
func importAccessories() throws {
125125
let openPanel = NSOpenPanel()
126126
openPanel.allowedFileTypes = ["plist"]
@@ -156,7 +156,7 @@ class AccessoryController: ObservableObject {
156156

157157
//MARK: Location reports
158158

159-
/// Download the location reports from
159+
/// Download the location reports from.
160160
/// - Parameter completion: called when the reports have been succesfully downloaded or the request has failed
161161
func downloadLocationReports(completion: @escaping (Result<Void, OpenHaystackMainView.AlertType>) -> Void) {
162162
AnisetteDataManager.shared.requestAnisetteData { result in

OpenHaystack/OpenHaystack/HaystackApp/ESP32Controller.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct ESP32Controller {
1414
Bundle.main.resourceURL?.appendingPathComponent("ESP32")
1515
}
1616

17-
/// Tries to find the port / path at which the ESP32 module is attached
17+
/// Tries to find the port / path at which the ESP32 module is attached.
1818
static func findPort() -> [URL] {
1919
// List all ports
2020
let ports = try? FileManager.default.contentsOfDirectory(atPath: "/dev").filter({ $0.contains("cu.") })
@@ -24,7 +24,7 @@ struct ESP32Controller {
2424
return portURLs ?? []
2525
}
2626

27-
/// Runs the script to flash the firmware on an ESP32
27+
/// Runs the script to flash the firmware on an ESP32.
2828
static func flashToESP32(accessory: Accessory, port: URL, completion: @escaping (Result<Void, Error>) -> Void) throws {
2929

3030
// Copy firmware to a temporary directory

OpenHaystack/OpenHaystack/HaystackApp/Views/ManageAccessoriesView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct ManageAccessoriesView: View {
7575

7676
}
7777

78-
/// All toolbar buttons shown
78+
/// All toolbar buttons shown.
7979
var toolbarView: some View {
8080
Group {
8181
Spacer()

0 commit comments

Comments
 (0)