Browse Source

[eslint] space-in-parens

release-8443
Lyubo Marinov 8 years ago
parent
commit
55ed404dd4

+ 1
- 0
.eslintrc.js View File

@@ -157,6 +157,7 @@ module.exports = {
157 157
         'padded-blocks': 0,
158 158
         'quote-props': 0,
159 159
         'semi': [ 'error', 'always' ],
160
+        'space-in-parens': [ 'error', 'never' ],
160 161
         'space-infix-ops': 2,
161 162
         'space-unary-ops': 2,
162 163
         'spaced-comment': 2,

+ 1
- 1
modules/RTC/JitsiLocalTrack.js View File

@@ -301,7 +301,7 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
301 301
     } else {
302 302
         if(mute) {
303 303
             this.dontFireRemoveEvent = true;
304
-            promise = new Promise( (resolve, reject) => {
304
+            promise = new Promise((resolve, reject) => {
305 305
                 this._removeStreamFromConferenceAsMute(() => {
306 306
                     // FIXME: Maybe here we should set the SRC for the containers
307 307
                     // to something

+ 1
- 1
modules/RTC/RTCUtils.js View File

@@ -941,7 +941,7 @@ class RTCUtils extends Listenable {
941 941
     * @param {string} options.cameraDeviceId
942 942
     * @param {string} options.micDeviceId
943 943
     **/
944
-    getUserMediaWithConstraints( um, success_callback, failure_callback, options) {
944
+    getUserMediaWithConstraints(um, success_callback, failure_callback, options) {
945 945
         options = options || {};
946 946
         var constraints = getConstraints(um, options);
947 947
 

+ 1
- 1
modules/RTC/ScreenObtainer.js View File

@@ -476,7 +476,7 @@ function waitForExtensionAfterInstall(options, waitInterval, retries) {
476 476
     return new Promise((resolve, reject) => {
477 477
         let currentRetries = retries;
478 478
         const interval = window.setInterval(() => {
479
-            checkChromeExtInstalled( installed => {
479
+            checkChromeExtInstalled(installed => {
480 480
                 if(installed) {
481 481
                     window.clearInterval(interval);
482 482
                     resolve();

+ 1
- 1
modules/transcription/transcriber.js View File

@@ -1,4 +1,4 @@
1
-var AudioRecorder = require( './audioRecorder');
1
+var AudioRecorder = require('./audioRecorder');
2 2
 var SphinxService = require(
3 3
     './transcriptionServices/SphinxTranscriptionService');
4 4
 

+ 1
- 1
modules/transcription/transcriptionServices/SphinxTranscriptionService.js View File

@@ -1,7 +1,7 @@
1 1
 /* global config */
2 2
 
3 3
 var TranscriptionService = require("./AbstractTranscriptionService");
4
-var Word = require( "../word");
4
+var Word = require("../word");
5 5
 var audioRecorder = require("./../audioRecorder");
6 6
 
7 7
 /**

+ 1
- 1
modules/xmpp/Caps.js View File

@@ -106,7 +106,7 @@ export default class Caps extends Listenable {
106 106
             = jid in this.jidToVersion ? this.jidToVersion[jid] : null;
107 107
         if(!user || !(user.version in this.versionToCapabilities)) {
108 108
             const node = user ? user.node + "#" + user.version : null;
109
-            return new Promise ( (resolve, reject) =>
109
+            return new Promise ((resolve, reject) =>
110 110
                 this.disco.info(jid, node, response => {
111 111
                     const features = new Set();
112 112
                     $(response).find(">query>feature").each((idx, el) =>

+ 3
- 3
modules/xmpp/ChatRoom.js View File

@@ -18,7 +18,7 @@ var parser = {
18 18
                 tagName
19 19
             };
20 20
             node.attributes = {};
21
-            $($(this)[0].attributes).each(function( index, attr ) {
21
+            $($(this)[0].attributes).each(function(index, attr) {
22 22
                 node.attributes[ attr.name ] = attr.value;
23 23
             });
24 24
             var text = Strophe.getText($(this)[0]);
@@ -98,7 +98,7 @@ export default class ChatRoom extends Listenable {
98 98
         this.presMap['to'] = this.myroomjid;
99 99
         this.presMap['xns'] = 'http://jabber.org/protocol/muc';
100 100
         this.presMap["nodes"] = [];
101
-        this.presMap["nodes"].push( {
101
+        this.presMap["nodes"].push({
102 102
             "tagName": "user-agent",
103 103
             "value": navigator.userAgent,
104 104
             "attributes": {xmlns: 'http://jitsi.org/jitmeet/user-agent'}
@@ -109,7 +109,7 @@ export default class ChatRoom extends Listenable {
109 109
     }
110 110
 
111 111
     updateDeviceAvailability (devices) {
112
-        this.presMap["nodes"].push( {
112
+        this.presMap["nodes"].push({
113 113
             "tagName": "devices",
114 114
             "children": [
115 115
                 {

+ 1
- 1
modules/xmpp/moderator.js View File

@@ -351,7 +351,7 @@ Moderator.prototype._allocateConferenceFocusError = function (error, callback) {
351 351
     }
352 352
     // Reset response timeout
353 353
     this.getNextTimeout(true);
354
-    window.setTimeout( () => this.allocateConferenceFocus(callback), waitMs);
354
+    window.setTimeout(() => this.allocateConferenceFocus(callback), waitMs);
355 355
 };
356 356
 
357 357
 /**

Loading…
Cancel
Save