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

Unified Diff: tracing/tracing/ui/extras/about_tracing/record_controller.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/record_controller.html
diff --git a/tracing/tracing/ui/extras/about_tracing/record_controller.html b/tracing/tracing/ui/extras/about_tracing/record_controller.html
index a04fe8ed4b3cfbc55d6460abbb2cc97f03abe118..9e09cfea1db99f357c3f322564d950688cb0c556 100644
--- a/tracing/tracing/ui/extras/about_tracing/record_controller.html
+++ b/tracing/tracing/ui/extras/about_tracing/record_controller.html
@@ -134,21 +134,20 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
}
function getBufferPercentFull() {
- if (!bufferPercentFullDiv)
- return;
+ if (!bufferPercentFullDiv) return;
tracingControllerClient.beginGetBufferPercentFull().then(
updateBufferPercentFull);
}
function updateBufferPercentFull(percentFull) {
- if (!bufferPercentFullDiv)
- return;
+ if (!bufferPercentFullDiv) return;
percentFull = Math.round(100 * parseFloat(percentFull));
var newText = 'Buffer usage: ' + percentFull + '%';
- if (Polymer.dom(bufferPercentFullDiv).textContent !== newText)
+ if (Polymer.dom(bufferPercentFullDiv).textContent !== newText) {
Polymer.dom(bufferPercentFullDiv).textContent = newText;
+ }
window.setTimeout(getBufferPercentFull, 500);
}

Powered by Google App Engine
This is Rietveld 408576698