lib/xcode/install/uninstall.rb in xcode-install-1.1.0 vs lib/xcode/install/uninstall.rb in xcode-install-1.2.0
- old
+ new
@@ -23,13 +23,12 @@
installed_path = @installer.installed_versions.find { |x| x.version == @version }
return if installed_path.nil? || installed_path.path.nil?
`sudo rm -rf #{installed_path.path}`
- if @installer.symlinks_to == installed_path.path
- newest_version = @installer.installed_versions.last
- @installer.symlink(newest_version)
- end
+ return unless @installer.symlinks_to == installed_path.path
+ newest_version = @installer.installed_versions.last
+ @installer.symlink(newest_version)
end
end
end
end