瀏覽代碼

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

release-8443
hristoterezov 8 年之前
父節點
當前提交
5022dcb6e6
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. 1
    0
      .eslintrc.js
  2. 1
    0
      modules/xmpp/JingleSessionPC.js

+ 1
- 0
.eslintrc.js 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存