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

Unified Diff: tracing/tracing/ui/base/info_bar_group.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/ui/base/hotkey_controller_test.html ('k') | tracing/tracing/ui/base/line_chart_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/info_bar_group.html
diff --git a/tracing/tracing/ui/base/info_bar_group.html b/tracing/tracing/ui/base/info_bar_group.html
index af82995de014ab54c13dd96de2f41bc48fce6f6d..d083d0bfd98bbf1906b56a76801bc9d9707939bb 100644
--- a/tracing/tracing/ui/base/info_bar_group.html
+++ b/tracing/tracing/ui/base/info_bar_group.html
@@ -35,10 +35,12 @@ Polymer({
addMessage: function(text, opt_buttons) {
opt_buttons = opt_buttons || [];
for (var i = 0; i < opt_buttons.length; i++) {
- if (opt_buttons[i].buttonText === undefined)
+ if (opt_buttons[i].buttonText === undefined) {
throw new Error('buttonText must be provided');
- if (opt_buttons[i].onClick === undefined)
+ }
+ if (opt_buttons[i].onClick === undefined) {
throw new Error('onClick must be provided');
+ }
}
this.messages_.push({
« no previous file with comments | « tracing/tracing/ui/base/hotkey_controller_test.html ('k') | tracing/tracing/ui/base/line_chart_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698