Skip to content

Commit

Permalink
wrapMethod unexpected asyncMethod call removed
Browse files Browse the repository at this point in the history
  • Loading branch information
taburetkin committed May 16, 2019
1 parent 225417b commit 489c2c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asyncresult-js",
"version": "1.0.0",
"version": "1.0.1",
"description": "helpful wrapper for promises",
"main": "index.js",
"repository": "https://github.com/taburetkin/asyncresult.git",
Expand Down
2 changes: 0 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ function wrapMethod(method, { context, AsyncResult } = {}) {
} catch (error) {
return toAsyncResult(error, AsyncResult);
}
//return toAsyncResult(method.apply(this, arguments), AsyncResult);
};
if (context) {
asyncMethod = asyncMethod.bind(context);
asyncMethod();
}
return asyncMethod;
}
Expand Down

0 comments on commit 489c2c9

Please sign in to comment.