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:
Florian Müllner
2020-11-13 23:52:26 +01:00
committed by Georges Basile Stavracas Neto
parent 7521b9c4b2
commit 8a47f1c667
22 changed files with 1 additions and 27 deletions

View File

@ -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();