Skip to content

Commit 07abd0f

Browse files
author
Robert Mosolgo
authored
Merge pull request #1832 from vbrazo/chores/fix-middleware-warning
Fix middleware warning
2 parents 9989474 + b436359 commit 07abd0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/graphql/compatibility/execution_specification/specification_schema.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def each
4949
end
5050

5151
module TestMiddleware
52-
# TODO: Once deprecated `next_middleware` argument becomes unsupported, add `&` to the argument
53-
def self.call(parent_type, parent_object, field_definition, field_args, query_context, next_middleware)
52+
def self.call(parent_type, parent_object, field_definition, field_args, query_context, &next_middleware)
5453
query_context[:middleware_log] && query_context[:middleware_log] << field_definition.name
5554
next_middleware.call
5655
end

0 commit comments

Comments
 (0)