aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/VPN/DNSResolver.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 19:35:25 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 19:35:25 +0100
commit955de09c9e0e318642089fe63c4c1d44517e3ff8 (patch)
tree82e99b4f67464fa5c464eff9a7d6db5a40b8d669 /WireGuard/WireGuard/VPN/DNSResolver.swift
parentSettings: limit size of logo (diff)
downloadwireguard-apple-955de09c9e0e318642089fe63c4c1d44517e3ff8.tar.xz
wireguard-apple-955de09c9e0e318642089fe63c4c1d44517e3ff8.zip
Global: run through swiftlint
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/VPN/DNSResolver.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/VPN/DNSResolver.swift b/WireGuard/WireGuard/VPN/DNSResolver.swift
index 4ceabdc..e750454 100644
--- a/WireGuard/WireGuard/VPN/DNSResolver.swift
+++ b/WireGuard/WireGuard/VPN/DNSResolver.swift
@@ -109,8 +109,8 @@ extension DNSResolver {
// getaddrinfo succeeded
let ipv4Buffer = UnsafeMutablePointer<Int8>.allocate(capacity: Int(INET_ADDRSTRLEN))
let ipv6Buffer = UnsafeMutablePointer<Int8>.allocate(capacity: Int(INET6_ADDRSTRLEN))
- var ipv4AddressString: String? = nil
- var ipv6AddressString: String? = nil
+ var ipv4AddressString: String?
+ var ipv6AddressString: String?
while (resultPointer != nil) {
let result = resultPointer!.pointee
resultPointer = result.ai_next