[gnome-shell-extensions] style: Avoid unnecessary parentheses



commit b25c4d07a718b83583e4f6e78b38716613f3e1ad
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Jan 26 23:33:11 2020 +0100

    style: Avoid unnecessary parentheses
    
    The eslint check in CI is broken, and some style nits weren't caught
    as a consequence.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/105

 extensions/drive-menu/extension.js     | 2 +-
 extensions/places-menu/placeDisplay.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index 6a15de4..879702a 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -69,7 +69,7 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
     _eject() {
         let unmountArgs = [
             Gio.MountUnmountFlags.NONE,
-            (new ShellMountOperation.ShellMountOperation(this.mount)).mountOp,
+            new ShellMountOperation.ShellMountOperation(this.mount).mountOp,
             null, // Gio.Cancellable
         ];
 
diff --git a/extensions/places-menu/placeDisplay.js b/extensions/places-menu/placeDisplay.js
index 201452f..3d3b516 100644
--- a/extensions/places-menu/placeDisplay.js
+++ b/extensions/places-menu/placeDisplay.js
@@ -200,7 +200,7 @@ class PlaceDeviceInfo extends PlaceInfo {
     eject() {
         let unmountArgs = [
             Gio.MountUnmountFlags.NONE,
-            (new ShellMountOperation.ShellMountOperation(this._mount)).mountOp,
+            new ShellMountOperation.ShellMountOperation(this._mount).mountOp,
             null, // Gio.Cancellable
         ];
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]