Permalink
Browse files

cleanup of diff methods

  • Loading branch information...
1 parent d6841c1 commit 997198658f57067d3b208cca7387f67cfeddbc4d @drnic drnic committed Jun 4, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/gemjour.rb
View
6 lib/gemjour.rb
@@ -103,12 +103,12 @@ def self._diff(name)
end
def self.diff(name)
- puts _diff(name)
+ return unless diff = _diff(name)
+ puts diff
end
def self.install_diff(name)
- gem_diff = _diff(name)
- return unless gem_diff
+ return unless gem_diff = _diff(name)
gem_diff.scan(/^\+([\w_\-]+)/) do |match|
install(name, match)
end

0 comments on commit 9971986

Please sign in to comment.