lib/graphql/query/validation_pipeline.rb in graphql-1.9.0.pre3 vs lib/graphql/query/validation_pipeline.rb in graphql-1.9.0.pre4

- old
+ new

@@ -74,23 +74,23 @@ else validation_result = @schema.static_validator.validate(@query, validate: @validate) @validation_errors.concat(validation_result[:errors]) @internal_representation = validation_result[:irep] - if @validation_errors.none? + if @validation_errors.empty? @validation_errors.concat(@query.variables.errors) end - if @validation_errors.none? + if @validation_errors.empty? @query_analyzers = build_analyzers( @schema, @max_depth, @max_complexity ) end end - @valid = @validation_errors.none? + @valid = @validation_errors.empty? end # If there are max_* values, add them, # otherwise reuse the schema's list of analyzers. def build_analyzers(schema, max_depth, max_complexity)