mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in lib/redmine/scm/adapters/subversion_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19180 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
83d3192472
commit
20e17f14e7
@ -79,6 +79,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
info
|
info
|
||||||
rescue CommandFailed
|
rescue CommandFailed
|
||||||
return nil
|
return nil
|
||||||
@ -102,6 +103,7 @@ module Redmine
|
|||||||
# Skip directory if there is no commit date (usually that
|
# Skip directory if there is no commit date (usually that
|
||||||
# means that we don't have read access to it)
|
# means that we don't have read access to it)
|
||||||
next if entry['kind'] == 'dir' && commit_date.nil?
|
next if entry['kind'] == 'dir' && commit_date.nil?
|
||||||
|
|
||||||
name = entry['name']['__content__']
|
name = entry['name']['__content__']
|
||||||
entries << Entry.new({:name => URI.unescape(name),
|
entries << Entry.new({:name => URI.unescape(name),
|
||||||
:path => ((path.empty? ? "" : "#{path}/") + name),
|
:path => ((path.empty? ? "" : "#{path}/") + name),
|
||||||
@ -120,6 +122,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
logger.debug("Found #{entries.size} entries in the repository for #{target(path)}") if logger && logger.debug?
|
logger.debug("Found #{entries.size} entries in the repository for #{target(path)}") if logger && logger.debug?
|
||||||
entries.sort_by_name
|
entries.sort_by_name
|
||||||
end
|
end
|
||||||
@ -143,6 +146,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
properties
|
properties
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -182,6 +186,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
revisions
|
revisions
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -203,6 +208,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
diff
|
diff
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -216,6 +222,7 @@ module Redmine
|
|||||||
cat = io.read
|
cat = io.read
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
cat
|
cat
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -227,6 +234,7 @@ module Redmine
|
|||||||
shellout(cmd) do |io|
|
shellout(cmd) do |io|
|
||||||
io.each_line do |line|
|
io.each_line do |line|
|
||||||
next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$}
|
next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$}
|
||||||
|
|
||||||
rev = $1
|
rev = $1
|
||||||
blame.add_line(
|
blame.add_line(
|
||||||
$3.rstrip,
|
$3.rstrip,
|
||||||
@ -239,6 +247,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return nil if $? && $?.exitstatus != 0
|
return nil if $? && $?.exitstatus != 0
|
||||||
|
|
||||||
blame
|
blame
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user