Skip to content

Commit

Permalink
refactor(graphql): use Object type with '==' operator instead of dyna…
Browse files Browse the repository at this point in the history
…mic.
  • Loading branch information
aarsham committed Mar 31, 2024
1 parent 2891d5b commit 36402dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class SubscriptionData extends GraphQLSocketMessage {
int get hashCode => toJson().hashCode;

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is SubscriptionData && jsonEncode(other) == jsonEncode(this);
}

Expand All @@ -279,7 +279,7 @@ class SubscriptionNext extends GraphQLSocketMessage {
int get hashCode => toJson().hashCode;

@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is SubscriptionNext && jsonEncode(other) == jsonEncode(this);
}

Expand Down

0 comments on commit 36402dc

Please sign in to comment.