Skip to content

Commit

Permalink
chore: fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraichen committed Sep 27, 2024
1 parent 92bd3be commit 6e7afff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def set_backtrace(trace) # rubocop:disable Naming/AccessorMethodName
trace << "/:0 caused by #{cause.class.name}: #{cause.message}"
trace += cause.backtrace.map! {|line| " #{line}" }
end
super trace
super
end
end

class RemoteError < StandardError
def initialize(opts = {})
super "#{opts[:class]}: #{opts[:error]}"
super("#{opts[:class]}: #{opts[:error]}")
set_backtrace opts[:backtrace]
end
end
Expand Down

0 comments on commit 6e7afff

Please sign in to comment.