aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/plotutils.rb
diff options
context:
space:
mode:
authorJack Nagel2015-01-01 01:21:59 -0500
committerJack Nagel2015-01-01 13:21:29 -0500
commit9ba14469d5987ba0ad608a6854645b880a224298 (patch)
tree59583546d034dd8dcf4c532070e21e91c5c4a9bd /Library/Formula/plotutils.rb
parente92df787dc2acf595d0c28412ff05e8d4c9cd136 (diff)
downloadhomebrew-9ba14469d5987ba0ad608a6854645b880a224298.tar.bz2
Avoid formula lookup when we know it will fail
Formulary.loader_for cannot raise exceptions, as canonical_name must work for nonexistent formulae. However, we can skip the constant lookup and a redundant file existence check by returning a loader that raises immediately in #get_formula.
Diffstat (limited to 'Library/Formula/plotutils.rb')
0 files changed, 0 insertions, 0 deletions