Index: runtime/bin/io_service.cc |
diff --git a/runtime/bin/io_service.cc b/runtime/bin/io_service.cc |
index 77b722cde2813bfcdcf6714897c7ceccb735ebea..004e3d27eec24950ec5a1e9ad132ab5c4ed0bf9d 100644 |
--- a/runtime/bin/io_service.cc |
+++ b/runtime/bin/io_service.cc |
@@ -11,11 +11,10 @@ |
#include "bin/socket.h" |
#include "bin/utils.h" |
-#include "platform/globals.h" |
-#include "platform/utils.h" |
- |
#include "include/dart_api.h" |
+#include "platform/globals.h" |
+#include "platform/utils.h" |
namespace dart { |
namespace bin { |
@@ -30,8 +29,8 @@ void IOServiceCallback(Dart_Port dest_port_id, |
Dart_Port reply_port_id = ILLEGAL_PORT; |
CObject* response = CObject::IllegalArgumentError(); |
CObjectArray request(message); |
- if (message->type == Dart_CObject_kArray && |
- request.Length() == 4 && |
+ if ((message->type == Dart_CObject_kArray) && |
+ (request.Length() == 4) && |
request[0]->IsInt32() && |
request[1]->IsSendPort() && |
request[2]->IsInt32() && |
@@ -57,10 +56,7 @@ void IOServiceCallback(Dart_Port dest_port_id, |
Dart_Port IOService::GetServicePort() { |
- Dart_Port result = Dart_NewNativePort("IOService", |
- IOServiceCallback, |
- true); |
- return result; |
+ return Dart_NewNativePort("IOService", IOServiceCallback, true); |
} |
@@ -74,6 +70,5 @@ void FUNCTION_NAME(IOService_NewServicePort)(Dart_NativeArguments args) { |
} |
} |
- |
} // namespace bin |
} // namespace dart |