Commit 70f2f2d4 by Demid Merzlyakov

Fix warnings.

parent d4bba760
...@@ -300,11 +300,21 @@ public class LocationManager { ...@@ -300,11 +300,21 @@ public class LocationManager {
// do nothing // do nothing
} }
else { else {
self.log.error("Update weather (\(location)) error: \(error)") if let error = error {
self.log.error("Update weather (\(location)) error: \(error)")
}
else {
self.log.error("Update weather (\(location)) error: unknown error")
}
} }
} }
else { else {
self.log.error("Update weather (\(location)) error: \(error)") if let error = error {
self.log.error("Update weather (\(location)) error: \(error)")
}
else {
self.log.error("Update weather (\(location)) error: unknown error")
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment