Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #isaacs
  2. function myThing (args, cb) {
  3. getData(args, function (er, data) {
  4. if (er) return log.er(cb, "Couldn't get data")(er)
  5. doSomethingElse(data, cb)
  6. })
  7. }
  8. function justHasToWork (cb) {
  9. doSomething(log.er(cb, "the doSomething failed."))
  10. }
  11.  
  12. #roberts
  13. function myThing (args, cb)
  14. {
  15. getData(args, function (er, data)
  16. {
  17. if (er) return log.er(cb, "Couldn't get data")(er)
  18. {
  19. doSomethingElse(data, cb);
  20. }
  21. });
  22. }
  23.  
  24. function justHasToWork (cb)
  25. {
  26. doSomething(log.er(cb, "the doSomething failed."));
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement