Skip to content

Commit 3ed3560

Browse files
committed
remove ES6
1 parent 320fbd7 commit 3ed3560

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extends: 'eslint:recommended'
44
globals:
55
Promise: false
66
parserOptions:
7-
ecmaVersion: 6
7+
ecmaVersion: 5
88
rules:
99
indent: [ 2, 2, { SwitchCase: 1 } ]
1010
no-trailing-spaces: 2

lib/util.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ function objectToPromise(obj) {
3535
}
3636

3737
return promises.length
38-
? Promise.all(promises).then(() => results)
38+
? Promise.all(promises).then(function() { return results; })
3939
: Promise.resolve(obj);
4040

4141
function defer(p, _key) {
42-
p = p.then((res) => { results[_key] = res; });
42+
p = p.then(function (res) {
43+
results[_key] = res;
44+
});
4345
promises.push(p);
4446
}
4547
}

0 commit comments

Comments
 (0)