diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-06 13:49:10 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-06 13:49:10 +0000 |
commit | 1194235faa4985913cff517475ba3a3b5b5ccf68 (patch) | |
tree | b9d868f8607baddc300ab4311faeb8c79a70dbdd /lib/redmine/scm/adapters/git_adapter.rb | |
parent | e9e477426aa538fa1d77fca13944e40ee24557ec (diff) | |
download | redmine-1194235faa4985913cff517475ba3a3b5b5ccf68.tar.gz redmine-1194235faa4985913cff517475ba3a3b5b5ccf68.zip |
scm: git: remove unused "block_given?" from adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5673 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/git_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index ef7c9b3f4..c848684ff 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -214,11 +214,7 @@ module Redmine :message => changeset[:description], :paths => files }) - if block_given? - yield revision - else - revisions << revision - end + revisions << revision changeset = {} files = [] end @@ -263,13 +259,8 @@ module Redmine :time => Time.parse(changeset[:date]), :message => changeset[:description], :paths => files - }) - - if block_given? - yield revision - else - revisions << revision - end + }) + revisions << revision end end revisions |