Simplify check for String include/exclude option.

This commit is contained in:
Parker Moore 2013-07-08 18:35:16 +02:00
parent bbd466497f
commit 9d3d095bca
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ module Jekyll
end
%w[include exclude].each do |option|
if config.has_key?(option) && config[option].is_a?(String)
if config.fetch(option, []).is_a?(String)
Jekyll.logger.warn "Deprecation:", "The '#{option}' configuration option" +
" must now be specified as an array, but you specified" +
" a string. For now, we've treated the string you provided" +