Skip to content

Commit 107d662

Browse files
committed
fix: remove condition for verify
1 parent 015a737 commit 107d662

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/cloud_firestore/cloud_firestore/lib/src/collection_reference.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class _JsonCollectionReference extends _JsonQuery
7777
_JsonCollectionReference(
7878
FirebaseFirestore firestore,
7979
CollectionReferencePlatform _delegate,
80-
) : super(firestore, _delegate)
80+
) : super(firestore, _delegate);
8181

8282
@override
8383
CollectionReferencePlatform get _delegate =>

packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/platform_interface/platform_interface_query.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ abstract class QueryPlatform extends PlatformInterface {
3737
/// the object in which it's going to delegate calls has been
3838
/// constructed properly.
3939
static void verify(QueryPlatform instance) {
40-
if (instance is! CollectionReferencePlatform) {
41-
PlatformInterface.verify(instance, _token);
42-
}
40+
PlatformInterface.verify(instance, _token);
4341
}
4442

4543
/// The [FirebaseFirestorePlatform] interface for this current query.

0 commit comments

Comments
 (0)