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

Unified Diff: tracing/tracing/mre/file_handle.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « tracing/tracing/model/vm_region.html ('k') | tracing/tracing/mre/function_handle.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/mre/file_handle.html
diff --git a/tracing/tracing/mre/file_handle.html b/tracing/tracing/mre/file_handle.html
index 8caa68feff5e03eba97c37944b9073319b980556..9e04e55c0113eec5278726d43603aca91453b1b0 100644
--- a/tracing/tracing/mre/file_handle.html
+++ b/tracing/tracing/mre/file_handle.html
@@ -28,8 +28,9 @@ tr.exportTo('tr.mre', function() {
};
this._asDictInto(d);
- if (d.type === undefined)
+ if (d.type === undefined) {
throw new Error('_asDictInto must set type field');
+ }
},
load: function() {
@@ -38,10 +39,12 @@ tr.exportTo('tr.mre', function() {
};
FileHandle.fromDict = function(handleDict) {
- if (handleDict.type === 'url')
+ if (handleDict.type === 'url') {
return URLFileHandle.fromDict(handleDict);
- if (handleDict.type === 'in-memory')
+ }
+ if (handleDict.type === 'in-memory') {
return InMemoryFileHandle.fromDict(handleDict);
+ }
throw new Error('Not implemented: fromDict for ' + handleDict.type);
};
« no previous file with comments | « tracing/tracing/model/vm_region.html ('k') | tracing/tracing/mre/function_handle.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698