cleanup: Avoid unnecessary braces

Our coding style has always been to avoid braces when all blocks
are single-lines.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
Florian Müllner
2019-08-20 02:51:42 +02:00
committed by Georges Basile Stavracas Neto
parent 69f63dc94f
commit 67ea424525
38 changed files with 136 additions and 201 deletions

View File

@ -85,11 +85,10 @@ var ShowOverviewAction = GObject.registerClass({
for (let i = 0; i < this.get_n_current_points(); i++) {
let x, y;
if (motion == true) {
if (motion == true)
[x, y] = this.get_motion_coords(i);
} else {
else
[x, y] = this.get_press_coords(i);
}
if (i == 0) {
minX = maxX = x;