Skip to content

Commit 7c66e6a

Browse files
jordanbreen28jordanbreen28
authored andcommitted
(CONT-794) - Correct Style/RescueStandardError
1 parent 69e60f9 commit 7c66e6a

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
@@ -38,14 +38,6 @@ Style/MixinUsage:
3838
Exclude:
3939
- 'spec/spec_helper.rb'
4040

41-
# Offense count: 1
42-
# This cop supports safe autocorrection (--autocorrect).
43-
# Configuration parameters: EnforcedStyle.
44-
# SupportedStyles: implicit, explicit
45-
Style/RescueStandardError:
46-
Exclude:
47-
- 'spec/spec_helper.rb'
48-
4941
# Offense count: 1
5042
# This cop supports safe autocorrection (--autocorrect).
5143
# Configuration parameters: EnforcedStyleForMultiline.

spec/spec_helper.rb

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

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

0 commit comments

Comments
 (0)