Skip to content

Commit 927f950

Browse files
committed
Simplify
1 parent 0768969 commit 927f950

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/Drawing/StyleManager.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Gala.Drawing.StyleManager : Object {
3636

3737
private static GLib.Once<StyleManager> instance;
3838
public static StyleManager get_instance () {
39-
return instance.once (() => {return new StyleManager ();});
39+
return instance.once (() => new StyleManager ());
4040
}
4141

4242
public ColorScheme prefers_color_scheme { get; private set; default = LIGHT; }

src/Background/BackgroundCache.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class Gala.BackgroundCache : Object {
88
private static GLib.Once<BackgroundCache> instance;
99
public static unowned BackgroundCache get_default () {
10-
return instance.once (() => { return new BackgroundCache (); });
10+
return instance.once (() => new BackgroundCache ());
1111
}
1212

1313
public signal void file_changed (string filename);

src/PluginManager.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class Gala.PluginManager : Object {
88
private static GLib.Once<PluginManager> instance;
99
public static unowned PluginManager get_default () {
10-
return instance.once (() => { return new PluginManager (); });
10+
return instance.once (() => new PluginManager ());
1111
}
1212

1313
public delegate PluginInfo RegisterPluginFunction ();

src/Widgets/MultitaskingView/StaticWindowContainer.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public class Gala.StaticWindowContainer : ActorTarget {
1313
private static GLib.Once<StaticWindowContainer> instance;
1414
public static StaticWindowContainer get_instance (Meta.Display display) {
15-
return instance.once (() => { return new StaticWindowContainer (display); });
15+
return instance.once (() => new StaticWindowContainer (display));
1616
}
1717

1818
public signal void window_changed (Meta.Window window, bool is_static);

src/WindowDragProvider.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class Gala.WindowDragProvider : Object {
1010
private static GLib.Once<WindowDragProvider> instance;
1111
public static WindowDragProvider get_instance () {
12-
return instance.once (() => { return new WindowDragProvider (); });
12+
return instance.once (() => new WindowDragProvider ());
1313
}
1414

1515
public signal void enter (uint64 window_id);

0 commit comments

Comments
 (0)