Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: mojo/public/dart/src/message_pipe.dart

Issue 998693004: Enable dartanalyze warnings. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/dart/src/message_pipe.dart
diff --git a/mojo/public/dart/src/message_pipe.dart b/mojo/public/dart/src/message_pipe.dart
index 1d5e776c5e8861216925b8d3b7365bef67114f56..300b81d1321c596e9c377c74319f9e808b103b69 100644
--- a/mojo/public/dart/src/message_pipe.dart
+++ b/mojo/public/dart/src/message_pipe.dart
@@ -82,7 +82,7 @@ class MojoMessagePipeEndpoint {
dataNumBytes = (numBytes == -1) ? data.lengthInBytes : numBytes;
if (dataNumBytes > data.lengthInBytes) {
status = MojoResult.INVALID_ARGUMENT;
- return status;
+ return new MojoMessagePipeReadResult(status, 0, 0);
zra 2015/03/11 18:38:06 null
}
}

Powered by Google App Engine
This is Rietveld 408576698