Details
-
Story
-
Resolution: Fixed
-
Medium
-
None
-
5.2-alpha1
Description
- Instead of nesting if/else branches early breaks should be used:
function(error, success) { if (error) { callback(new CAPIError({ errorText : "An error occured during ensureAuthentication call!" })); return; } ... }
- In addition it's also would be useful to remove the empty Response objects (created in case of errors).