Enabled more swiftlint rules
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
This commit is contained in:
@@ -21,7 +21,7 @@ class DNSResolver {
|
||||
}
|
||||
|
||||
static func resolveSync(endpoints: [Endpoint?]) throws -> [Endpoint?] {
|
||||
let dispatchGroup: DispatchGroup = DispatchGroup()
|
||||
let dispatchGroup = DispatchGroup()
|
||||
|
||||
if isAllEndpointsAlreadyResolved(endpoints: endpoints) {
|
||||
return endpoints
|
||||
|
||||
@@ -36,7 +36,7 @@ class PacketTunnelSettingsGenerator {
|
||||
if let listenPort = tunnelConfiguration.interface.listenPort {
|
||||
wgSettings.append("listen_port=\(listenPort)\n")
|
||||
}
|
||||
if tunnelConfiguration.peers.count > 0 {
|
||||
if !tunnelConfiguration.peers.isEmpty {
|
||||
wgSettings.append("replace_peers=true\n")
|
||||
}
|
||||
assert(tunnelConfiguration.peers.count == resolvedEndpoints.count)
|
||||
|
||||
Reference in New Issue
Block a user