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

Unified Diff: dashboard/dashboard/pinpoint/elements/jobs-page.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: dashboard/dashboard/pinpoint/elements/jobs-page.html
diff --git a/dashboard/dashboard/pinpoint/elements/jobs-page.html b/dashboard/dashboard/pinpoint/elements/jobs-page.html
index e0c269ce730e8216f556fc951f849757127345e9..5b598114093916a8e6d19c356d340dbe683aadfd 100644
--- a/dashboard/dashboard/pinpoint/elements/jobs-page.html
+++ b/dashboard/dashboard/pinpoint/elements/jobs-page.html
@@ -109,10 +109,12 @@ found in the LICENSE file.
computeIsSingular: count => count === 1,
computeJobCountString: function() {
- if (this.totalJobsCount === 1)
+ if (this.totalJobsCount === 1) {
return '1 job';
- if (this.totalJobsCount < this.totalJobsCountMax)
+ }
+ if (this.totalJobsCount < this.totalJobsCountMax) {
return String(this.totalJobsCount) + ' jobs.';
+ }
return String(this.totalJobsCountMax) + ' or more jobs.';
},
« no previous file with comments | « dashboard/dashboard/elements/test-picker.html ('k') | dashboard/dashboard/pinpoint/elements/jobs-table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698