From 8372ecdcf0620543555f8a8f661294b3891d5b20 Mon Sep 17 00:00:00 2001 From: Robert Mosolgo Date: Mon, 9 Dec 2024 10:59:04 -0500 Subject: [PATCH] lint and typo fix --- lib/graphql/subscriptions/event.rb | 2 +- spec/graphql/schema/subscription_spec.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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