Rearrange lines to isolate throwing code

This commit is contained in:
Davide De Rosa 2019-03-06 16:57:47 +01:00
parent 693a59d0a5
commit e4ef4a9dbc
1 changed files with 4 additions and 2 deletions

View File

@ -51,10 +51,12 @@ class TransientStore {
}
private init() {
let cfg = AppConstants.VPN.baseConfiguration()
do {
// this must be graceful
ConnectionService.migrateJSON(from: TransientStore.serviceURL, to: TransientStore.serviceURL)
let cfg = AppConstants.VPN.baseConfiguration()
do {
let data = try Data(contentsOf: TransientStore.serviceURL)
if let content = String(data: data, encoding: .utf8) {
log.verbose("Service JSON:")