Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup of diff methods

  • Loading branch information...
commit 997198658f57067d3b208cca7387f67cfeddbc4d 1 parent d6841c1
Dr Nic Williams drnic authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/gemjour.rb
6 lib/gemjour.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.