diff options
| author | Jack Nagel | 2013-05-22 19:42:43 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-22 19:42:43 -0500 |
| commit | abe58195ae25ff327a18c01c229bcece544819d9 (patch) | |
| tree | 4eba1e2122aa0b40080d2758c691a6c76978d10c /Library | |
| parent | e89164d1fa35ef1ceb74565540a126198883abcc (diff) | |
| download | homebrew-abe58195ae25ff327a18c01c229bcece544819d9.tar.bz2 | |
Favor equality check over nil check
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index 3e9f7cdaa..c5a2ab9ea 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -8,7 +8,7 @@ class Keg bad_names.each do |bad_name| new_name = fixed_name(file, bad_name) - unless new_name.nil? + unless new_name == bad_name install_name_tool("-change", bad_name, new_name, file) end end @@ -61,7 +61,8 @@ class Keg elsif (abs_name = find_dylib(Pathname.new(bad_name).basename)) && abs_name.exist? abs_name.to_s else - opoo "Could not fix install names for #{file}" + opoo "Could not fix #{bad_name} in #{file}" + bad_name end end |
