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

Unified Diff: tracing/tracing/extras/importer/battor_importer.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/extras/importer/battor_importer.html
diff --git a/tracing/tracing/extras/importer/battor_importer.html b/tracing/tracing/extras/importer/battor_importer.html
index 45c10bbfae1f59cec3b9e0f6a375f83e73f6ad22..61843be081dfc295360b8b5001588d122b0e6b4c 100644
--- a/tracing/tracing/extras/importer/battor_importer.html
+++ b/tracing/tracing/extras/importer/battor_importer.html
@@ -50,8 +50,9 @@ tr.exportTo('tr.e.importer.battor', function() {
* @return {boolean} True when events is a BattOr array.
*/
BattorImporter.canImport = function(events) {
- if (!(typeof(events) === 'string' || events instanceof String))
+ if (!(typeof(events) === 'string' || events instanceof String)) {
return false;
+ }
return battorHeaderLineRE.test(events);
};
@@ -112,11 +113,9 @@ tr.exportTo('tr.e.importer.battor', function() {
for (var line of lines) {
line = line.trim();
- if (line.length === 0)
- continue;
+ if (line.length === 0) continue;
- if (line.startsWith('#'))
- continue;
+ if (line.startsWith('#')) continue;
// Parse power sample.
var groups = battorDataLineRE.exec(line);
@@ -137,8 +136,9 @@ tr.exportTo('tr.e.importer.battor', function() {
tr.b.UnitPrefixScale.METRIC.NONE);
var syncId = groups[4];
- if (syncId)
+ if (syncId) {
this.syncTimestampsById_.set(syncId, ts);
+ }
if (voltageInV < 0 || currentInA < 0) {
this.model_.importWarning({
« no previous file with comments | « tracing/tracing/extras/importer/android/event_log_importer.html ('k') | tracing/tracing/extras/importer/etw/etw_importer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698