mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Style/RaiseArgs cop
This commit is contained in:
parent
b26ca78613
commit
287d820740
2 changed files with 1 additions and 9 deletions
|
@ -314,14 +314,6 @@ Style/PerlBackrefs:
|
|||
- 'lib/pry/method.rb'
|
||||
- 'lib/pry/rubygem.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: compact, exploded
|
||||
Style/RaiseArgs:
|
||||
Exclude:
|
||||
- 'lib/pry/method.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantException:
|
||||
|
|
|
@ -530,7 +530,7 @@ class Pry
|
|||
begin
|
||||
code = Pry::Code.from_file(file).expression_at(line)
|
||||
rescue SyntaxError => e
|
||||
raise MethodSource::SourceNotFoundError.new(e.message)
|
||||
raise MethodSource::SourceNotFoundError, e.message
|
||||
end
|
||||
strip_leading_whitespace(code)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue