File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
firebase-database/ktx/src/main/kotlin/com/google/firebase/database/ktx
firebase-firestore/ktx/src/main/kotlin/com/google/firebase/firestore/ktx Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ val Query.childEvents
135
135
* - When the returned flow starts being collected, a [ValueEventListener] will be attached.
136
136
* - When the flow completes, the listener will be removed.
137
137
*/
138
- inline fun <reified T : Any > Query.values () : Flow <T ?> {
139
- return snapshots.map { it.getValue(T ::class .java) }
138
+ inline fun <reified T : Any > Query.values (): Flow <T ?> {
139
+ return snapshots.map { it.getValue(T ::class .java) }
140
140
}
141
141
142
142
internal const val LIBRARY_NAME : String = " fire-db-ktx"
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ fun Query.snapshots(
253
253
* @param T The type of the object to convert to.
254
254
*/
255
255
inline fun <reified T : Any > Query.dataObjects (
256
- metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE
256
+ metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE
257
257
): Flow <List <T >> = snapshots(metadataChanges).map { it.toObjects(T ::class .java) }
258
258
259
259
/* *
@@ -267,5 +267,5 @@ inline fun <reified T : Any> Query.dataObjects(
267
267
* @param T The type of the object to convert to.
268
268
*/
269
269
inline fun <reified T : Any > DocumentReference.dataObjects (
270
- metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE
270
+ metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE
271
271
): Flow <T ?> = snapshots(metadataChanges).map { it.toObject(T ::class .java) }
You can’t perform that action at this time.
0 commit comments