diff --git a/lib/graphql/subscriptions/event.rb b/lib/graphql/subscriptions/event.rb index 49e68ec314..d2d8ce7abb 100644 --- a/lib/graphql/subscriptions/event.rb +++ b/lib/graphql/subscriptions/event.rb @@ -62,7 +62,7 @@ def fingerprint class << self def arguments_without_field_extras(arguments:, field:) - if field.extras.any? + if !field.extras.empty? arguments = arguments.dup field.extras.each do |extra_key| arguments.delete(extra_key) diff --git a/spec/graphql/schema/subscription_spec.rb b/spec/graphql/schema/subscription_spec.rb index 9bccec64dc..0df9d1953e 100644 --- a/spec/graphql/schema/subscription_spec.rb +++ b/spec/graphql/schema/subscription_spec.rb @@ -740,7 +740,6 @@ class Subscription < GraphQL::Schema::Object field :direct, subscription: DirectWrite field :implicit, subscription: ImplicitWrite field :direct_twice, subscription: DirectWriteTwice - field :with_payload, subscription: DirectWriteWithPayload end use WriteCheckSubscriptions.new