[gnome-shell] network: Don't omit parens when constructing
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network: Don't omit parens when constructing
- Date: Wed, 11 Sep 2019 21:13:51 +0000 (UTC)
commit a3267be192e6b47131a5c08376ad13d3356d9109
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Aug 19 21:13:01 2019 +0200
network: Don't omit parens when constructing
While it is legal to omit parentheses when invoking a constructor
with no arguments, we generally avoid that in our coding style.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
js/ui/status/network.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 7cff22c6e6..4bb012d889 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -874,7 +874,7 @@ class NMWirelessDialog extends ModalDialog.ModalDialog {
this._airplaneHeadline = new St.Label({ style_class: 'nm-dialog-airplane-headline headline' });
this._airplaneText = new St.Label({ style_class: 'nm-dialog-airplane-text' });
- let airplaneSubStack = new St.Widget({ layout_manager: new Clutter.BinLayout });
+ let airplaneSubStack = new St.Widget({ layout_manager: new Clutter.BinLayout() });
this._airplaneButton = new St.Button({ style_class: 'modal-dialog-button button' });
this._airplaneButton.connect('clicked', () => {
if (this._rfkill.airplaneMode)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]