Unverified Commit 0d183879 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Do not return nil where hash is expected

parent 49433958
...@@ -19,9 +19,9 @@ class Authorization < ApplicationRecord ...@@ -19,9 +19,9 @@ class Authorization < ApplicationRecord
client.verify_credentials.attributes client.verify_credentials.attributes
end end
else else
@info = nil @info = {}
end end
rescue Mastodon::Error, HTTP::Error, OpenSSL::SSL::SSLError rescue Mastodon::Error, HTTP::Error, OpenSSL::SSL::SSLError
@info = nil @info = {}
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment