Skip to content

Commit 91a62f0

Browse files
committed
Change formatting.
1 parent 629f6c0 commit 91a62f0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/github_api/error.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GithubError < StandardError
1111

1212
# Initialize a new Github error object.
1313
#
14-
def initialize(message=$!)
14+
def initialize(message = $!)
1515
if message.respond_to?(:backtrace)
1616
super(message.message)
1717
@response_message = message
@@ -21,7 +21,11 @@ def initialize(message=$!)
2121
end
2222

2323
def backtrace
24-
@response_message && @response_message.respond_to?(:backtrace) ? @response_message.backtrace : super
24+
if @response_message && @response_message.respond_to?(:backtrace)
25+
@response_message.backtrace
26+
else
27+
super
28+
end
2529
end
2630
end # GithubError
2731
end # Error

0 commit comments

Comments
 (0)