mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
remove redundant 'return' from lib/redmine/scm/adapters/cvs_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20645 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dfc9f20c0c
commit
2e67986a92
@ -359,14 +359,14 @@ module Redmine
|
|||||||
unless time.is_a?(Time)
|
unless time.is_a?(Time)
|
||||||
time = Time.parse(time)
|
time = Time.parse(time)
|
||||||
end
|
end
|
||||||
return time_to_cvstime_rlog(time)
|
time_to_cvstime_rlog(time)
|
||||||
end
|
end
|
||||||
|
|
||||||
def time_to_cvstime_rlog(time)
|
def time_to_cvstime_rlog(time)
|
||||||
return nil if time.nil?
|
return nil if time.nil?
|
||||||
|
|
||||||
t1 = time.clone.localtime
|
t1 = time.clone.localtime
|
||||||
return t1.strftime("%Y-%m-%d %H:%M:%S")
|
t1.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
end
|
end
|
||||||
|
|
||||||
def normalize_cvs_path(path)
|
def normalize_cvs_path(path)
|
||||||
@ -421,10 +421,10 @@ module Redmine
|
|||||||
|
|
||||||
def branchVersion
|
def branchVersion
|
||||||
if isBranchRevision
|
if isBranchRevision
|
||||||
return @base+"."+@branchid
|
return @base + "." + @branchid
|
||||||
end
|
end
|
||||||
|
|
||||||
return @base
|
@base
|
||||||
end
|
end
|
||||||
|
|
||||||
def isBranchRevision
|
def isBranchRevision
|
||||||
@ -433,16 +433,16 @@ module Redmine
|
|||||||
|
|
||||||
def prevRev
|
def prevRev
|
||||||
unless @revision == 0
|
unless @revision == 0
|
||||||
return buildRevision( @revision - 1 )
|
return buildRevision(@revision - 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
return buildRevision( @revision )
|
buildRevision(@revision)
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_in_branch_with_symbol(branch_symbol)
|
def is_in_branch_with_symbol(branch_symbol)
|
||||||
bpieces = branch_symbol.split(".")
|
bpieces = branch_symbol.split(".")
|
||||||
branch_start = "#{bpieces[0..-3].join(".")}.#{bpieces[-1]}"
|
branch_start = "#{bpieces[0..-3].join(".")}.#{bpieces[-1]}"
|
||||||
return ( branchVersion == branch_start )
|
(branchVersion == branch_start)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user