mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
use "do end" instead of {} at lib/redmine/scm/adapters/abstract_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19970 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -299,13 +299,13 @@ module Redmine
|
||||
|
||||
class Entries < Array
|
||||
def sort_by_name
|
||||
dup.sort! {|x,y|
|
||||
dup.sort! do |x, y|
|
||||
if x.kind == y.kind
|
||||
x.name.to_s <=> y.name.to_s
|
||||
else
|
||||
x.kind <=> y.kind
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
def revisions
|
||||
@@ -355,13 +355,13 @@ module Redmine
|
||||
|
||||
class Revisions < Array
|
||||
def latest
|
||||
sort {|x,y|
|
||||
sort do |x, y|
|
||||
unless x.time.nil? or y.time.nil?
|
||||
x.time <=> y.time
|
||||
else
|
||||
0
|
||||
end
|
||||
}.last
|
||||
end.last
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user