tab#to_json: allow zero parameters.
This commit is contained in:
parent
14dc7d6bb8
commit
803ea4ed1a
@ -324,7 +324,7 @@ class Tab < OpenStruct
|
||||
Time.at(super)
|
||||
end
|
||||
|
||||
def to_json(_opts)
|
||||
def to_json(options = nil)
|
||||
attributes = {
|
||||
"homebrew_version" => homebrew_version,
|
||||
"used_options" => used_options.as_flags,
|
||||
@ -344,7 +344,7 @@ class Tab < OpenStruct
|
||||
"source" => source,
|
||||
}
|
||||
|
||||
JSON.generate(attributes)
|
||||
JSON.generate(attributes, options)
|
||||
end
|
||||
|
||||
def write
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user