lib/bindata/buffer.rb in bindata-2.3.5 vs lib/bindata/buffer.rb in bindata-2.4.0

- old
+ new

@@ -108,15 +108,10 @@ class BufferArgProcessor < BaseArgProcessor include MultiFieldArgSeparator def sanitize_parameters!(obj_class, params) params.merge!(obj_class.dsl_params) - params.must_be_integer(:length) - - if params.needs_sanitizing?(:type) - el_type, el_params = params[:type] - params[:type] = params.create_sanitized_object_prototype(el_type, el_params) - end + params.sanitize_object_prototype(:type) end end end