diff options
Diffstat (limited to 'WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift')
-rw-r--r-- | WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift b/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift index b3c0acd..f4c52c2 100644 --- a/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift +++ b/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift @@ -42,7 +42,7 @@ class WgQuickConfigFileParser { trimmedLine = trimmedLine.trimmingCharacters(in: .whitespaces) - guard trimmedLine.count > 0 else { continue } + guard !trimmedLine.isEmpty else { continue } let lowercasedLine = line.lowercased() if let equalsIndex = line.firstIndex(of: "=") { |