Move variable declaration to proper scope
This commit is contained in:
parent
345bd55100
commit
49b86c2888
|
@ -99,10 +99,6 @@ extension TunnelKitProvider.Configuration {
|
||||||
var tlsKeyLines: [Substring]?
|
var tlsKeyLines: [Substring]?
|
||||||
var tlsWrap: SessionProxy.TLSWrap?
|
var tlsWrap: SessionProxy.TLSWrap?
|
||||||
|
|
||||||
var currentBlockName: String?
|
|
||||||
var currentBlock: [String] = []
|
|
||||||
var unsupportedError: ApplicationError? = nil
|
|
||||||
|
|
||||||
log.verbose("Configuration file:")
|
log.verbose("Configuration file:")
|
||||||
for line in lines {
|
for line in lines {
|
||||||
log.verbose(line)
|
log.verbose(line)
|
||||||
|
@ -115,6 +111,10 @@ extension TunnelKitProvider.Configuration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var currentBlockName: String?
|
||||||
|
var currentBlock: [String] = []
|
||||||
|
var unsupportedError: ApplicationError? = nil
|
||||||
|
|
||||||
Regex.blockBegin.enumerateComponents(in: line) {
|
Regex.blockBegin.enumerateComponents(in: line) {
|
||||||
isHandled = true
|
isHandled = true
|
||||||
let tag = $0.first!
|
let tag = $0.first!
|
||||||
|
|
Loading…
Reference in New Issue