Browse Source

fix(eslint): Add array-callback-return rule

tags/v0.0.2
hristoterezov 8 years ago
parent
commit
5022dcb6e6
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      .eslintrc.js
  2. 1
    0
      modules/xmpp/JingleSessionPC.js

+ 1
- 0
.eslintrc.js View File

@@ -71,6 +71,7 @@ module.exports = {
71 71
 
72 72
         // Best Practices group
73 73
         'accessor-pairs': 0,
74
+        'array-callback-return': 2,
74 75
 
75 76
         'prefer-spread': 2,
76 77
         'require-yield': 2,

+ 1
- 0
modules/xmpp/JingleSessionPC.js View File

@@ -1145,6 +1145,7 @@ export default class JingleSessionPC extends JingleSession {
1145 1145
                 sender = s;
1146 1146
                 return true;
1147 1147
             }
1148
+            return false;
1148 1149
         });
1149 1150
 
1150 1151
         if (sender) {

Loading…
Cancel
Save