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
This commit is contained in:
parent
e9e477426a
commit
1194235faa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue