Skip to content

Commit

Permalink
Issue #324 Try a different map/reduce to see if speed improves
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossg committed Sep 23, 2015
1 parent 1b873a2 commit 7705d66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/librarian/puppet/source/forge/repo_v3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def initialize(source, name)
end

def get_versions
get_module.releases.map do |r|
r.version unless r.deleted_at != nil
end.compact
get_module.releases.select{|r| r.deleted_at.nil?}.map{|r| r.version}
end

def dependencies(version)
Expand Down

0 comments on commit 7705d66

Please sign in to comment.