Skip to content

Commit

Permalink
swiftlint warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Nov 19, 2017
1 parent 47bc3e5 commit 8f76deb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions HomeAssistant/Views/SettingsViewController.swift
Expand Up @@ -314,8 +314,10 @@ class SettingsViewController: FormViewController, CLLocationManagerDelegate {
let center = UNUserNotificationCenter.current()
center.requestAuthorization(options: [.alert, .badge, .sound]) { (granted, error) in
if error != nil {
let alert = UIAlertController(title: L10n.Settings.ConnectionSection.ErrorEnablingNotifications.title,
message: L10n.Settings.ConnectionSection.ErrorEnablingNotifications.message,
let title = L10n.Settings.ConnectionSection.ErrorEnablingNotifications.title
let message = L10n.Settings.ConnectionSection.ErrorEnablingNotifications.message
let alert = UIAlertController(title: title,
message: message,
preferredStyle: UIAlertControllerStyle.alert)
alert.addAction(UIAlertAction(title: L10n.okLabel, style: UIAlertActionStyle.default,
handler: nil))
Expand Down

0 comments on commit 8f76deb

Please sign in to comment.