[polari] utils: Don't initialize variables to undefined



commit b9678e7d19abd316aabe3e029204899fe638dc38
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Aug 6 18:08:24 2019 +0200

    utils: Don't initialize variables to undefined
    
    The declaration itself already does this implicitly.
    
    https://gitlab.gnome.org/GNOME/polari/merge_requests/133

 src/utils.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index e5f71f3..2812fc4 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -83,9 +83,9 @@ const _urlRegexp = new RegExp(
 
 const _channelRegexp = new RegExp('(^| )#([\\w\\+\\.-]+)', 'g');
 
-let _gpasteExpire = undefined;
+let _gpasteExpire;
 
-let _inFlatpakSandbox = undefined;
+let _inFlatpakSandbox;
 
 function isFlatpakSandbox() {
     if (_inFlatpakSandbox === undefined)


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