mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Style/RedundantBegin in lib/redmine/scm/adapters/git_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18626 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d5deee8af1
commit
ae58969f64
@ -1388,11 +1388,6 @@ Style/RaiseArgs:
|
|||||||
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
||||||
- 'lib/redmine/sort_criteria.rb'
|
- 'lib/redmine/sort_criteria.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/RedundantBegin:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/RedundantConditional:
|
Style/RedundantConditional:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
@ -70,12 +70,10 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def info
|
def info
|
||||||
begin
|
|
||||||
Info.new(:root_url => url, :lastrev => lastrev('',nil))
|
Info.new(:root_url => url, :lastrev => lastrev('',nil))
|
||||||
rescue
|
rescue
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def branches
|
def branches
|
||||||
return @branches if @branches
|
return @branches if @branches
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user