Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Dec 20, 2020
1 parent 57d3894 commit 1d4d9b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ module.exports = function ($p) {
return $p.resolve(result.value);
}
return $p.resolve(result.value)
.then(res => {
return handle(g.next(res));
}, err => {
return handle(g.throw(err));
});
.then(res => handle(g.next(res)), err => handle(g.throw(err)));
}

return handle(g.next());
Expand Down
1 change: 0 additions & 1 deletion lib/utils/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function isPromise(value) {

////////////////////////////////////////////
// Checks object for being a readable stream;

function isReadableStream(obj) {
return obj instanceof npm.stream.Stream &&
typeof obj._read === 'function' &&
Expand Down

0 comments on commit 1d4d9b3

Please sign in to comment.