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

Unified Diff: tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.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
Index: tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
diff --git a/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html b/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
index b8ab1a69b3cb466c8d46c594bcc2314838eb7e0c..c66ac7e9c4bc5646135ea66da3e87836f3f47816 100644
--- a/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
+++ b/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
@@ -16,12 +16,13 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
var Base64 = tr.b.Base64;
function beginXhr(method, path, data) {
- if (data === undefined)
- data = null;
+ if (data === undefined) data = null;
+
return new Promise(function(resolve, reject) {
var req = new XMLHttpRequest();
- if (method !== 'POST' && data !== null)
+ if (method !== 'POST' && data !== null) {
throw new Error('Non-POST should have data==null');
+ }
req.open(method, path, true);
req.onreadystatechange = function(e) {
if (req.readyState === 4) {

Powered by Google App Engine
This is Rietveld 408576698