Rearrange lines to isolate throwing code
This commit is contained in:
parent
693a59d0a5
commit
e4ef4a9dbc
|
@ -51,10 +51,12 @@ class TransientStore {
|
|||
}
|
||||
|
||||
private init() {
|
||||
|
||||
// this must be graceful
|
||||
ConnectionService.migrateJSON(from: TransientStore.serviceURL, to: TransientStore.serviceURL)
|
||||
|
||||
let cfg = AppConstants.VPN.baseConfiguration()
|
||||
do {
|
||||
ConnectionService.migrateJSON(from: TransientStore.serviceURL, to: TransientStore.serviceURL)
|
||||
|
||||
let data = try Data(contentsOf: TransientStore.serviceURL)
|
||||
if let content = String(data: data, encoding: .utf8) {
|
||||
log.verbose("Service JSON:")
|
||||
|
|
Loading…
Reference in New Issue