lib/dry/schema/macros/filled.rb in dry-schema-0.4.0 vs lib/dry/schema/macros/filled.rb in dry-schema-0.5.0

- old
+ new

@@ -16,11 +16,11 @@ if predicates.include?(:filled?) raise ::Dry::Schema::InvalidSchemaError, 'Using filled with filled? is redundant' end - if opts[:type_spec].equal?(true) - value(predicates[0], :filled?, *predicates[1..predicates.size-1], **opts, &block) + if opts[:type_spec] + value(predicates[0], :filled?, *predicates[1..predicates.size - 1], **opts, &block) else value(:filled?, *predicates, **opts, &block) end end end