style: Fix brace style
Opening braces should be on the same line as the associated statement, and only be omitted if both surrounding blocks are one-liners. Partially spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/607
This commit is contained in:
@ -185,9 +185,9 @@ var Notebook = class Notebook {
|
||||
}
|
||||
|
||||
selectChild(child) {
|
||||
if (child == null)
|
||||
if (child == null) {
|
||||
this.selectIndex(-1);
|
||||
else {
|
||||
} else {
|
||||
for (let i = 0; i < this._tabs.length; i++) {
|
||||
let tabData = this._tabs[i];
|
||||
if (tabData.child == child) {
|
||||
|
Reference in New Issue
Block a user