Skip to content

Commit

Permalink
fix: remove condition for verify
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Oct 11, 2022
1 parent 015a737 commit 107d662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class _JsonCollectionReference extends _JsonQuery
_JsonCollectionReference(
FirebaseFirestore firestore,
CollectionReferencePlatform _delegate,
) : super(firestore, _delegate)
) : super(firestore, _delegate);

@override
CollectionReferencePlatform get _delegate =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ abstract class QueryPlatform extends PlatformInterface {
/// the object in which it's going to delegate calls has been
/// constructed properly.
static void verify(QueryPlatform instance) {
if (instance is! CollectionReferencePlatform) {
PlatformInterface.verify(instance, _token);
}
PlatformInterface.verify(instance, _token);
}

/// The [FirebaseFirestorePlatform] interface for this current query.
Expand Down

0 comments on commit 107d662

Please sign in to comment.