Polish redundant code

This commit is contained in:
Bob Sun 2017-03-22 22:39:53 -07:00
parent de2270f8b3
commit 3b3904fb40
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -51,12 +51,10 @@ class AdvancedSettingsTableViewController: UITableViewController {
}
SVProgressHUD.dismiss(withDelay: 1)
} catch {
DispatchQueue.main.async {
Utils.alert(title: "Error", message: error.localizedDescription, controller: self, completion: nil)
}
}
}
}
}))
alert.addAction(UIAlertAction(title: "Dismiss", style: UIAlertActionStyle.cancel, handler:nil))