diff options
| author | Jack Nagel | 2015-01-01 01:21:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-01-01 13:21:29 -0500 |
| commit | 9ba14469d5987ba0ad608a6854645b880a224298 (patch) | |
| tree | 59583546d034dd8dcf4c532070e21e91c5c4a9bd /Library/Formula/plotutils.rb | |
| parent | e92df787dc2acf595d0c28412ff05e8d4c9cd136 (diff) | |
| download | homebrew-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
