Use Hash.new instead of hash literal
This commit is contained in:
parent
fb39b41ffb
commit
dd4fe87f69
|
@ -131,7 +131,7 @@ module Jekyll
|
||||||
# Returns the metadata for this collection
|
# Returns the metadata for this collection
|
||||||
def extract_metadata
|
def extract_metadata
|
||||||
if site.config['collections'].is_a?(Hash)
|
if site.config['collections'].is_a?(Hash)
|
||||||
site.config['collections'][label] || {}
|
site.config['collections'][label] || Hash.new
|
||||||
else
|
else
|
||||||
{}
|
{}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue