Move variable declaration to proper scope

This commit is contained in:
Davide De Rosa 2018-10-28 09:24:43 +01:00
parent 345bd55100
commit 49b86c2888
1 changed files with 4 additions and 4 deletions

View File

@ -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!