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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 3009663002: Address code review comment from previous commit. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 865b32001f6044427f150de653554a3258aab59c..d28e9565eb50805098ae0b2702b2356e31e8d63d 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -4978,11 +4978,7 @@ static Dart_Handle LoadKernelProgram(Thread* T,
kernel::KernelReader reader(program);
const Object& tmp = reader.ReadProgram();
delete program;
-
- if (tmp.IsError()) {
- return Api::NewHandle(T, tmp.raw());
- }
- return Dart_Null();
+ return Api::NewHandle(T, tmp.raw());
}
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698