Fix for Codacy: variable name should be between 3 and 40 characters long (#608)

Tiny fixes for iOS
This commit is contained in:
isamnezia
2024-02-19 16:13:10 +03:00
committed by GitHub
parent e402cacc05
commit 9c4ee4014d
2 changed files with 29 additions and 27 deletions
@@ -175,7 +175,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
return
}
guard let wgConfigStr = try? JSONDecoder().decode(WGConfig.self, from: wgConfig).wg,
guard let wgConfigStr = try? JSONDecoder().decode(WGConfig.self, from: wgConfig).str,
let tunnelConfiguration = try? TunnelConfiguration(fromWgQuickConfig: wgConfigStr)
else {
wg_log(.error, message: "Can't parse WireGuard config")