improve validation code

This commit is contained in:
maul.esel 2013-09-11 17:37:15 +02:00
parent accea6648c
commit 0874c14b2c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module Jekyll
end
def valid?(set)
set['scope'].is_a?(Hash) && set['scope'].has_key?('path') && set['values'].is_a?(Hash)
set.is_a?(Hash) && set['scope'].is_a?(Hash) && set['scope']['path'].is_a?(String) && set['values'].is_a?(Hash)
end
def matching_sets(path, type)