Skip to content

Commit 9d6af82

Browse files
committed
Correct Style/RescueStandardError
1 parent 92c5dfd commit 9d6af82

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
@@ -78,14 +78,6 @@ Style/MixinUsage:
7878
Exclude:
7979
- 'spec/spec_helper.rb'
8080

81-
# Offense count: 1
82-
# This cop supports safe autocorrection (--autocorrect).
83-
# Configuration parameters: EnforcedStyle.
84-
# SupportedStyles: implicit, explicit
85-
Style/RescueStandardError:
86-
Exclude:
87-
- 'spec/spec_helper.rb'
88-
8981
# Offense count: 50
9082
# This cop supports safe autocorrection (--autocorrect).
9183
# 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)