Only retain first parsing warning
This commit is contained in:
parent
49b86c2888
commit
ebe8c5836b
|
@ -229,7 +229,7 @@ extension TunnelKitProvider.Configuration {
|
||||||
compressionFraming = .compLZO
|
compressionFraming = .compLZO
|
||||||
|
|
||||||
guard let arg = $0.first, arg == "no" else {
|
guard let arg = $0.first, arg == "no" else {
|
||||||
warning = .unsupportedConfiguration(option: "compression")
|
warning = warning ?? .unsupportedConfiguration(option: "compression")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ extension TunnelKitProvider.Configuration {
|
||||||
compressionFraming = .compress
|
compressionFraming = .compress
|
||||||
|
|
||||||
guard $0.isEmpty else {
|
guard $0.isEmpty else {
|
||||||
warning = .unsupportedConfiguration(option: "compression")
|
warning = warning ?? .unsupportedConfiguration(option: "compression")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue