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:

committed by
Georges Basile Stavracas Neto

parent
69f63dc94f
commit
67ea424525
@ -635,11 +635,11 @@ class DateMenuButton extends PanelMenu.Button {
|
||||
_sessionUpdated() {
|
||||
let eventSource;
|
||||
let showEvents = Main.sessionMode.showCalendarEvents;
|
||||
if (showEvents) {
|
||||
if (showEvents)
|
||||
eventSource = this._getEventSource();
|
||||
} else {
|
||||
else
|
||||
eventSource = new Calendar.EmptyEventSource();
|
||||
}
|
||||
|
||||
this._setEventSource(eventSource);
|
||||
|
||||
// Displays are not actually expected to launch Settings when activated
|
||||
|
Reference in New Issue
Block a user