Last active
August 29, 2015 14:12
-
-
Save anxiousmodernman/8976cfa170c121560a40 to your computer and use it in GitHub Desktop.
Booty had me like example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('underscore'); | |
function bootyService(booty) { | |
return function() { | |
if (booty.hadMeLike()) { | |
throw new BootyError('Damn'); | |
} | |
return null; | |
} | |
} | |
module.exports = bootyService; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So if
booty.hadMeLike()
is falsy, my dick that uses this bootyService would throw a NullPointerException?