Skip to content

Commit e3a160e

Browse files
author
jordanbreen28
committed
(CONT-776) - Correct Style/RescueStandardError
1 parent b4e45c3 commit e3a160e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ RSpec/StubbedMock:
156156
Exclude:
157157
- 'spec/unit/lib/facter/docker_spec.rb'
158158

159-
# Offense count: 1
160-
# This cop supports safe autocorrection (--autocorrect).
161-
# Configuration parameters: EnforcedStyle.
162-
# SupportedStyles: implicit, explicit
163-
Style/RescueStandardError:
164-
Exclude:
165-
- 'spec/spec_helper.rb'
166-
167159
# Offense count: 4
168160
# This cop supports safe autocorrection (--autocorrect).
169161
# Configuration parameters: AllowModifier.

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
begin
2626
default_facts.merge!(YAML.safe_load(File.read(f), [], [], true))
27-
rescue => e
27+
rescue StandardError => e
2828
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
2929
end
3030
end

0 commit comments

Comments
 (0)