diff options
author | Alessio Nossa <alessio.nossa@gmail.com> | 2024-02-28 00:19:52 +0100 |
---|---|---|
committer | Alessio Nossa <alessio.nossa@gmail.com> | 2024-02-28 00:36:18 +0100 |
commit | 7da272a421039fc7f967a3a71787a55904bf8cac (patch) | |
tree | b08e5f72d5302632efa1edf39903b615fbdb8840 | |
parent | Remove missing peers error in UpdateTunnelConfiguration Intent (diff) | |
download | wireguard-apple-7da272a421039fc7f967a3a71787a55904bf8cac.tar.xz wireguard-apple-7da272a421039fc7f967a3a71787a55904bf8cac.zip |
Rename constant to satisfy SwiftLint
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com>
-rw-r--r-- | Sources/WireguardAppIntents/BuildPeerConfigurationUpdate.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Sources/WireguardAppIntents/BuildPeerConfigurationUpdate.swift b/Sources/WireguardAppIntents/BuildPeerConfigurationUpdate.swift index 090e52a..d5f8cbf 100644 --- a/Sources/WireguardAppIntents/BuildPeerConfigurationUpdate.swift +++ b/Sources/WireguardAppIntents/BuildPeerConfigurationUpdate.swift @@ -3,8 +3,6 @@ import AppIntents -let kEndpointConfigurationUpdateDictionaryKey = "Endpoint" - @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *) struct BuildPeerConfigurationUpdate: AppIntent { @@ -40,6 +38,8 @@ struct BuildPeerConfigurationUpdate: AppIntent { @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *) struct AppIntentsPeer: TransientAppEntity { + + static let kEndpointConfigUpdateDictionaryKey = "Endpoint" static var typeDisplayRepresentation = TypeDisplayRepresentation( name: LocalizedStringResource("peerConfigurationUpdateEntityName", table: "AppIntents") @@ -60,7 +60,7 @@ struct AppIntentsPeer: TransientAppEntity { dictionary[publicKey] = [:] if let endpoint { - dictionary[publicKey]?.updateValue(endpoint, forKey: kEndpointConfigurationUpdateDictionaryKey) + dictionary[publicKey]?.updateValue(endpoint, forKey: Self.kEndpointConfigUpdateDictionaryKey) } let jsonData: Data |