From ec3de27e5e9c7da2ba2d91dad24e579bab209a36 Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Thu, 17 Oct 2024 20:54:11 +0200 Subject: [PATCH] Make the linter happy --- Sources/Passes/DTOs/PersonalizationJSON.swift | 8 ++++---- Sources/Passes/PassesServiceCustom.swift | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/Passes/DTOs/PersonalizationJSON.swift b/Sources/Passes/DTOs/PersonalizationJSON.swift index 7ec005e..e73e5aa 100644 --- a/Sources/Passes/DTOs/PersonalizationJSON.swift +++ b/Sources/Passes/DTOs/PersonalizationJSON.swift @@ -2,7 +2,7 @@ /// /// This file specifies the personal information requested by the signup form. /// It also contains a description of the program and (optionally) the program’s terms and conditions. -/// +/// /// > Tip: See the [documentation](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/PassPersonalization.html#//apple_ref/doc/uid/TP40012195-CH12-SW2) to understand the keys. public struct PersonalizationJSON: Encodable, Sendable { /// The contents of this array define the data requested from the user. @@ -16,15 +16,15 @@ public struct PersonalizationJSON: Encodable, Sendable { var description: String /// A description of the program’s terms and conditions. - /// + /// /// This string can contain HTML link tags to external content. - /// + /// /// If present, this information is displayed after the user enters their personal information and taps the Next button. /// The user then has the option to agree to the terms, or to cancel out of the signup process. var termsAndConditions: String? /// Initializes a new ``PersonalizationJSON`` instance. - /// + /// /// - Parameters: /// - requiredPersonalizationFields: An array of ``PersonalizationField`` values that define the data requested to the user. /// - description: A brief description of the program. diff --git a/Sources/Passes/PassesServiceCustom.swift b/Sources/Passes/PassesServiceCustom.swift index d95ff59..2cbe831 100644 --- a/Sources/Passes/PassesServiceCustom.swift +++ b/Sources/Passes/PassesServiceCustom.swift @@ -592,7 +592,6 @@ extension PassesServiceCustom { try FileManager.default.copyItem(at: templateDirectory, to: root) defer { _ = try? FileManager.default.removeItem(at: root) } - try await self.delegate.encode(pass: pass, db: db, encoder: self.encoder) .write(to: root.appendingPathComponent("pass.json"))