Skip to content

Commit

Permalink
Update creating commit code
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovanton committed Apr 4, 2017
1 parent 7e3d363 commit c4dd364
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/contributors/servises/add_new_commits.rb
@@ -1,10 +1,12 @@
class AddNewCommits
def call
repo.all.each do |contributor|
begin
AllCommits.new.call(contributor).each { |c| commit_repo.create(c) }
rescue
next
AllCommits.new.call(contributor).each do |commit|
begin
commit_repo.create(commit)
rescue
next
end
end
end
end
Expand Down

0 comments on commit c4dd364

Please sign in to comment.