Cleanup (warnings; formatting)

This commit is contained in:
Roman Shevchenko
2016-05-24 13:01:02 +02:00
parent cfb5af3e40
commit ca06d6be5b
@@ -133,8 +133,7 @@ object UpdateChecker {
else if (result.state == UpdateStrategy.State.CONNECTION_ERROR) {
val e = result.error
if (e != null) LOG.debug(e)
val cause = e?.message ?: "internal error"
showErrorMessage(manualCheck, IdeBundle.message("updates.error.connection.failed", cause))
showErrorMessage(manualCheck, IdeBundle.message("updates.error.connection.failed", e?.message ?: "internal error"))
return
}
@@ -391,7 +390,7 @@ object UpdateChecker {
return
}
var listener = NotificationListener { notification, event ->
val listener = NotificationListener { notification, event ->
notification.expire()
action.invoke()
}