aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-08 17:05:58 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-08 17:07:28 +0100
commit0e2556544e617088d830dfb6d5ca53164a0d4c7c (patch)
treec79567fa3bb9e13f198982e0b55519c69f53e4b5 /WireGuard/Shared/Model
parentwireguard-go-bridge: get rid of nopie warning (diff)
downloadwireguard-apple-0e2556544e617088d830dfb6d5ca53164a0d4c7c.tar.xz
wireguard-apple-0e2556544e617088d830dfb6d5ca53164a0d4c7c.zip
Global: fix swiftlint issues
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/Shared/Model')
-rw-r--r--WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift3
1 files changed, 0 insertions, 3 deletions
diff --git a/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift b/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift
index b3f51980..859c1b53 100644
--- a/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift
+++ b/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift
@@ -35,7 +35,6 @@ extension TunnelConfiguration {
case multipleEntriesForKey(String)
}
- //swiftlint:disable:next function_body_length cyclomatic_complexity
convenience init(fromWgQuickConfig wgQuickConfig: String, called name: String? = nil) throws {
var interfaceConfiguration: InterfaceConfiguration?
var peerConfigurations = [PeerConfiguration]()
@@ -167,7 +166,6 @@ extension TunnelConfiguration {
return output
}
- //swiftlint:disable:next cyclomatic_complexity
private static func collate(interfaceAttributes attributes: [String: String]) throws -> InterfaceConfiguration {
guard let privateKeyString = attributes["privatekey"] else {
throw ParseError.interfaceHasNoPrivateKey
@@ -211,7 +209,6 @@ extension TunnelConfiguration {
return interface
}
- //swiftlint:disable:next cyclomatic_complexity
private static func collate(peerAttributes attributes: [String: String]) throws -> PeerConfiguration {
guard let publicKeyString = attributes["publickey"] else {
throw ParseError.peerHasNoPublicKey