diff options
| author | Jack Nagel | 2014-03-27 17:41:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-27 17:54:07 -0500 |
| commit | ed0be26c779283baba0c5f00216f5587eb9a64a0 (patch) | |
| tree | 4a4d38493ce1bc78a50f72207dc76479785bd697 /Library/brew.rb | |
| parent | 02a1d718713583425463717c5e8d8328c67fd5ad (diff) | |
| download | brew-ed0be26c779283baba0c5f00216f5587eb9a64a0.tar.bz2 | |
Fix overly defensive handling of src parameter in make_relative_symlink
This method is for internal use only. It is unsuitable for use in
formulae, which should use install_symlink to create relative symlinks.
Thus callers are required to pass a Pathname, not a string, and we can
remove this conditional.
Further, if src is not absolute, then src.relative_path_from(dirname)
will fail. All callers currently pass absolute pathnames. Therefore we
don't need to call expand_path when printing it.
Diffstat (limited to 'Library/brew.rb')
0 files changed, 0 insertions, 0 deletions
