Tidy up
This commit is contained in:
parent
296dd5ecb2
commit
7fea44ae46
@ -131,7 +131,7 @@ module Hbc
|
||||
end
|
||||
|
||||
def to_hash
|
||||
hsh = {
|
||||
{
|
||||
"name" => name,
|
||||
"homepage" => homepage,
|
||||
"url" => url,
|
||||
@ -139,7 +139,7 @@ module Hbc
|
||||
"version" => version,
|
||||
"sha256" => sha256,
|
||||
"artifacts" => artifacts.map do |a|
|
||||
if a.methods.include? :to_a
|
||||
if a.respond_to? :to_a
|
||||
a.to_a
|
||||
elsif a.methods.include? :to_h
|
||||
a.to_h
|
||||
@ -155,8 +155,6 @@ module Hbc
|
||||
"accessibility_access" => accessibility_access,
|
||||
"auto_updates" => auto_updates,
|
||||
}
|
||||
|
||||
hsh
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user