Index: runtime/bin/eventhandler.cc |
diff --git a/runtime/bin/eventhandler.cc b/runtime/bin/eventhandler.cc |
index bb9a7fec383e7a9daad1f4f77b76114481c2ecf6..704cc8568abbe5903372313ac9760b3bcf37793c 100644 |
--- a/runtime/bin/eventhandler.cc |
+++ b/runtime/bin/eventhandler.cc |
@@ -10,11 +10,9 @@ |
#include "include/dart_api.h" |
- |
namespace dart { |
namespace bin { |
- |
void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) { |
// Find port if present. |
Timeout* last = NULL; |
@@ -47,8 +45,8 @@ void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) { |
next_timeout_ = NULL; |
current = timeouts_; |
while (current != NULL) { |
- if (next_timeout_ == NULL || |
- current->timeout() < next_timeout_->timeout()) { |
+ if ((next_timeout_ == NULL) || |
+ (current->timeout() < next_timeout_->timeout())) { |
next_timeout_ = current; |
} |
current = current->next(); |
@@ -78,7 +76,9 @@ void EventHandler::NotifyShutdownDone() { |
void EventHandler::Stop() { |
- if (event_handler == NULL) return; |
+ if (event_handler == NULL) { |
+ return; |
+ } |
// Wait until it has stopped. |
{ |
@@ -101,7 +101,9 @@ void EventHandler::Stop() { |
EventHandlerImplementation* EventHandler::delegate() { |
- if (event_handler == NULL) return NULL; |
+ if (event_handler == NULL) { |
+ return NULL; |
+ } |
return &event_handler->delegate_; |
} |