Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #isaacs
- function myThing (args, cb) {
- getData(args, function (er, data) {
- if (er) return log.er(cb, "Couldn't get data")(er)
- doSomethingElse(data, cb)
- })
- }
- function justHasToWork (cb) {
- doSomething(log.er(cb, "the doSomething failed."))
- }
- #roberts
- function myThing (args, cb)
- {
- getData(args, function (er, data)
- {
- if (er) return log.er(cb, "Couldn't get data")(er)
- {
- doSomethingElse(data, cb);
- }
- });
- }
- function justHasToWork (cb)
- {
- doSomething(log.er(cb, "the doSomething failed."));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement