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:
@ -464,9 +464,9 @@ var Background = class Background {
|
||||
|
||||
let cache = Meta.BackgroundImageCache.get_default();
|
||||
let image = cache.load(file);
|
||||
if (image.is_loaded())
|
||||
if (image.is_loaded()) {
|
||||
this._setLoaded();
|
||||
else {
|
||||
} else {
|
||||
let id = image.connect('loaded', () => {
|
||||
this._setLoaded();
|
||||
image.disconnect(id);
|
||||
|
Reference in New Issue
Block a user