Skip to content

Commit

Permalink
Merge pull request #15 from baiyaaaaa/master
Browse files Browse the repository at this point in the history
fix errors is null
  • Loading branch information
yiminghe committed Aug 18, 2016
2 parents 6fc2367 + 405922a commit ff75690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function asyncSerialArray(arr, func, callback) {
const arrLength = arr.length;

function next(errors) {
if (errors.length) {
if (errors && errors.length) {
callback(errors);
return;
}
Expand Down

0 comments on commit ff75690

Please sign in to comment.