diff options
| author | Charlie Sharpsteen | 2011-11-27 16:44:42 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-11-27 16:44:42 -0800 |
| commit | 5a6cef458c52e75fec3b2ca591a12ab2a11ea001 (patch) | |
| tree | dac8a4089872680f0e37b5f20fa1dcb2a8817f9a /Library | |
| parent | 3b570b834b7ab50545028bc22aea1d9422b36891 (diff) | |
| download | homebrew-5a6cef458c52e75fec3b2ca591a12ab2a11ea001.tar.bz2 | |
formula.rb: Initialize path to nil or a Pathname
For consistency, ensure that the `path` member of formula objects is always a
`Pathname`.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9c63a35ff..9609e608e 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -130,7 +130,7 @@ class Formula @name=name validate_variable :name - @path=path + @path = path.nil? ? nil : Pathname.new(path) set_instance_variable 'version' @version ||= @spec_to_use.detect_version |
