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
client.verify_credentials.attributes
end
else
@info = nil
@info = {}
end
rescue Mastodon::Error, HTTP::Error, OpenSSL::SSL::SSLError
@info = nil
@info = {}
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