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

Unified Diff: tracing/tracing/mre/reduce_map_results_cmdline.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/mre/mre_result.html ('k') | tracing/tracing/trace2html.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/mre/reduce_map_results_cmdline.html
diff --git a/tracing/tracing/mre/reduce_map_results_cmdline.html b/tracing/tracing/mre/reduce_map_results_cmdline.html
index c726bcd77e17295c52825a49ad23eb49156020db..bff2a17e85612bd6f0466ab8700db7a377de03d1 100644
--- a/tracing/tracing/mre/reduce_map_results_cmdline.html
+++ b/tracing/tracing/mre/reduce_map_results_cmdline.html
@@ -26,8 +26,9 @@ tr.exportTo('tr.mre', function() {
}
function reduceMapResultsMain(args) {
- if (args.length !== 3)
+ if (args.length !== 3) {
throw new Error('Must provide three arguments');
+ }
var options = {
key: args[0],
@@ -49,9 +50,10 @@ tr.exportTo('tr.mre', function() {
reduceFunction);
});
- if (Object.keys(jobResults.pairs).length !== 0)
+ if (Object.keys(jobResults.pairs).length !== 0) {
console.log('JOB_RESULTS: ' + JSON.stringify(jobResults.pairs,
jsonReplacer));
+ }
jobResults.failures.forEach(function(failure) {
console.log('JOB_FAILURE: ' + JSON.stringify(failure.asDict()));
});
@@ -64,7 +66,8 @@ tr.exportTo('tr.mre', function() {
});
-if (tr.isHeadless)
+if (tr.isHeadless) {
quit(tr.mre.reduceMapResultsMain(sys.argv.slice(1)));
+}
</script>
« no previous file with comments | « tracing/tracing/mre/mre_result.html ('k') | tracing/tracing/trace2html.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698