[polari] cleanups: Fix stray/missing spaces



commit 5cd72f22d55f72ffb743e2df5c44efe82e75b1c7
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Aug 6 16:51:39 2019 +0200

    cleanups: Fix stray/missing spaces
    
    Those are wrong according to our style guidelines, but the current
    eslint ruleset didn't catch them.
    
    https://gitlab.gnome.org/GNOME/polari/merge_requests/133

 src/entryArea.js       | 4 ++--
 src/mainWindow.js      | 2 +-
 src/roomList.js        | 2 +-
 src/telepathyClient.js | 2 +-
 src/userList.js        | 2 +-
 src/userTracker.js     | 4 ++--
 src/utils.js           | 8 ++++----
 7 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/entryArea.js b/src/entryArea.js
index e28548e..aac2d1e 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -43,7 +43,7 @@ var ChatEntry = GObject.registerClass({
         });
 
         let buffer = Gspell.EntryBuffer.get_from_gtk_entry_buffer(this.buffer);
-        buffer.set_spell_checker (ChatEntry._checker);
+        buffer.set_spell_checker(ChatEntry._checker);
 
         let spellEntry = Gspell.Entry.get_from_gtk_entry(this);
         spellEntry.set_inline_spell_checking(true);
@@ -224,7 +224,7 @@ var EntryArea = GObject.registerClass({
                 return; // avoid indefinite recursion
 
             state &= ~Gtk.StateFlags.BACKDROP;
-            w.set_state_flags (state, true);
+            w.set_state_flags(state, true);
         });
 
         this._chatEntry.connect('text-pasted', (entry, text, nLines) => {
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 02aaba9..c7ade54 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -243,7 +243,7 @@ var MainWindow = GObject.registerClass({
     }
 
     _onDestroy() {
-        this._settings.set_boolean ('window-maximized', this._isMaximized);
+        this._settings.set_boolean('window-maximized', this._isMaximized);
         this._settings.set_value('window-size',
             new GLib.Variant('ai', this._currentSize));
 
diff --git a/src/roomList.js b/src/roomList.js
index 37e365f..a48c51f 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -5,7 +5,7 @@ const { Gdk, Gio, GLib, GObject, Gtk, TelepathyGLib: Tp } = imports.gi;
 const { AccountsMonitor } = imports.accountsMonitor;
 const { RoomManager } = imports.roomManager;
 
-const MIN_SPINNER_TIME = 1000000;   //in microsecond
+const MIN_SPINNER_TIME = 1000000;   // in microsecond
 
 function _onPopoverVisibleChanged(popover) {
     let context = popover.relative_to.get_style_context();
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 1b48468..a4dcba1 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -591,7 +591,7 @@ class TelepathyClient extends Tp.BaseClient {
                 this._app.activate();
 
             this._roomManager.ensureRoomForChannel(channel, time);
-            //channel.join_async('', null);
+            // channel.join_async('', null);
         });
     }
 
diff --git a/src/userList.js b/src/userList.js
index c928ca5..733e440 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -237,7 +237,7 @@ var UserDetails = GObject.registerClass({
                 this._cancellable,
                 this._onContactInfoReady.bind(this));
         } else {
-            //TODO: else use this._nickname to query tracker
+            // TODO: else use this._nickname to query tracker
             this._revealDetails();
         }
     }
diff --git a/src/userTracker.js b/src/userTracker.js
index 1022bc3..0f45d93 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -146,7 +146,7 @@ const UserTracker = GObject.registerClass({
         else
             members = [room.channel.connection.self_contact, room.channel.target_contact];
 
-        /*keep track of initial members in the room, both locally and
+        /* keep track of initial members in the room, both locally and
         globally*/
         members.forEach(m => this._trackMember(m, room));
     }
@@ -307,7 +307,7 @@ const UserTracker = GObject.registerClass({
         this._getRoomHandlers(room).delete(handlerID);
     }
 
-    _notifyNickAvailable (member, room) {
+    _notifyNickAvailable(member, room) {
         let notification = new Gio.Notification();
         notification.set_title(_('User is online'));
         notification.set_body(_('User %s is now online.').format(member.alias));
diff --git a/src/utils.js b/src/utils.js
index 375176a..346101d 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -94,10 +94,10 @@ function isFlatpakSandbox() {
 }
 
 function getTpEventTime() {
-    let time = Gtk.get_current_event_time ();
+    let time = Gtk.get_current_event_time();
     if (time == 0)
         return GLib.MAXUINT32;
-    return Tp.user_action_time_from_x11 (time);
+    return Tp.user_action_time_from_x11(time);
 }
 
 function storeAccountPassword(account, password, callback) {
@@ -178,9 +178,9 @@ function openURL(url, timestamp) {
     let app = Gio.Application.get_default();
     try {
         if (app.active_window)
-            Gtk.show_uri_on_window (app.active_window, url, timestamp);
+            Gtk.show_uri_on_window(app.active_window, url, timestamp);
         else
-            Gtk.show_uri (Gdk.Screen.get_default(), url, timestamp);
+            Gtk.show_uri(Gdk.Screen.get_default(), url, timestamp);
     } catch (e) {
         let n = new AppNotifications.SimpleOutput(_('Failed to open link'));
         app.notificationQueue.addNotification(n);


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