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 tlsWrap: SessionProxy.TLSWrap?
|
||||
|
||||
var currentBlockName: String?
|
||||
var currentBlock: [String] = []
|
||||
var unsupportedError: ApplicationError? = nil
|
||||
|
||||
log.verbose("Configuration file:")
|
||||
for line in lines {
|
||||
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) {
|
||||
isHandled = true
|
||||
let tag = $0.first!
|
||||
|
|
Loading…
Reference in New Issue