Authored by 周少峰

if condi

@@ -78,11 +78,8 @@ module.exports = (req, res, next) => { @@ -78,11 +78,8 @@ module.exports = (req, res, next) => {
78 exclusion = result.exclusion; 78 exclusion = result.exclusion;
79 } 79 }
80 80
81 - if (!excluded && typeof result === 'function') {  
82 - allPass = false;  
83 - }  
84 -  
85 if (typeof result === 'function') { 81 if (typeof result === 'function') {
  82 + allPass = false;
86 policy = result; 83 policy = result;
87 } 84 }
88 }); 85 });