improve validation code
This commit is contained in:
parent
accea6648c
commit
0874c14b2c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue