Index: runtime/bin/io_service_no_ssl.cc |
diff --git a/runtime/bin/io_service_no_ssl.cc b/runtime/bin/io_service_no_ssl.cc |
index b63f8c8e53bd1620abd94d10074ebf68a03cd533..5c70fe45c0145bef734ac00023c686a697ac1d0e 100644 |
--- a/runtime/bin/io_service_no_ssl.cc |
+++ b/runtime/bin/io_service_no_ssl.cc |
@@ -10,11 +10,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 { |
@@ -29,8 +28,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() && |
@@ -56,10 +55,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); |
} |
@@ -73,6 +69,5 @@ void FUNCTION_NAME(IOService_NewServicePort)(Dart_NativeArguments args) { |
} |
} |
- |
} // namespace bin |
} // namespace dart |