cleanup: Remove empty leading/trailing lines in blocks
gjs added a new rule to its eslint ruleset that forbids "block padding", so make sure we conform to that rule before syncing up the configuration. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1498
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
7521b9c4b2
commit
8a47f1c667
@ -20,7 +20,6 @@ var HistoryManager = class {
|
||||
this._history = global.settings.get_strv(this._key);
|
||||
global.settings.connect(`changed::${this._key}`,
|
||||
this._historyChanged.bind(this));
|
||||
|
||||
} else {
|
||||
this._history = [];
|
||||
}
|
||||
@ -72,7 +71,6 @@ var HistoryManager = class {
|
||||
addItem(input) {
|
||||
if (this._history.length == 0 ||
|
||||
this._history[this._history.length - 1] != input) {
|
||||
|
||||
this._history = this._history.filter(entry => entry != input);
|
||||
this._history.push(input);
|
||||
this._save();
|
||||
|
Reference in New Issue
Block a user