diff --git a/package.json b/package.json index e1af8a3..1b46972 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/utils.js b/utils.js index 7870c00..7c4f042 100644 --- a/utils.js +++ b/utils.js @@ -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; }