mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Lint/HandleExceptions in lib/redmine/scm/adapters/mercurial_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18458 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c73884aee2
commit
c22ba96c92
@ -553,7 +553,6 @@ Lint/HandleExceptions:
|
|||||||
- 'app/models/import.rb'
|
- 'app/models/import.rb'
|
||||||
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
||||||
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
||||||
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
|
||||||
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
||||||
|
|
||||||
Lint/IneffectiveAccessModifier:
|
Lint/IneffectiveAccessModifier:
|
||||||
|
|||||||
@ -135,6 +135,7 @@ module Redmine
|
|||||||
begin
|
begin
|
||||||
@summary = parse_xml(output)['rhsummary']
|
@summary = parse_xml(output)['rhsummary']
|
||||||
rescue
|
rescue
|
||||||
|
# do nothing
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -148,6 +149,7 @@ module Redmine
|
|||||||
begin
|
begin
|
||||||
parse_xml(output)['rhmanifest']['repository']['manifest']
|
parse_xml(output)['rhmanifest']['repository']['manifest']
|
||||||
rescue
|
rescue
|
||||||
|
# do nothing
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
path_prefix = path.blank? ? '' : with_trailling_slash(path)
|
path_prefix = path.blank? ? '' : with_trailling_slash(path)
|
||||||
@ -193,6 +195,7 @@ module Redmine
|
|||||||
# Mercurial < 1.5 does not support footer template for '</log>'
|
# Mercurial < 1.5 does not support footer template for '</log>'
|
||||||
parse_xml("#{output}</log>")['log']
|
parse_xml("#{output}</log>")['log']
|
||||||
rescue
|
rescue
|
||||||
|
# do nothing
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
as_ary(log['logentry']).each do |le|
|
as_ary(log['logentry']).each do |le|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user