Use Hash.new instead of hash literal

This commit is contained in:
Parker Moore 2014-04-24 13:30:13 -04:00
parent fb39b41ffb
commit dd4fe87f69
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ module Jekyll
# Returns the metadata for this collection
def extract_metadata
if site.config['collections'].is_a?(Hash)
site.config['collections'][label] || {}
site.config['collections'][label] || Hash.new
else
{}
end