Skip to content

Commit e93b3df

Browse files
committed
fix formatting
1 parent 0dc6410 commit e93b3df

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

2 files changed

+4
-4
lines changed

firebase-database/ktx/src/main/kotlin/com/google/firebase/database/ktx/Database.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ val Query.childEvents
135135
* - When the returned flow starts being collected, a [ValueEventListener] will be attached.
136136
* - When the flow completes, the listener will be removed.
137137
*/
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) }
140140
}
141141

142142
internal const val LIBRARY_NAME: String = "fire-db-ktx"

firebase-firestore/ktx/src/main/kotlin/com/google/firebase/firestore/ktx/Firestore.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ fun Query.snapshots(
253253
* @param T The type of the object to convert to.
254254
*/
255255
inline fun <reified T : Any> Query.dataObjects(
256-
metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE
256+
metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE
257257
): Flow<List<T>> = snapshots(metadataChanges).map { it.toObjects(T::class.java) }
258258

259259
/**
@@ -267,5 +267,5 @@ inline fun <reified T : Any> Query.dataObjects(
267267
* @param T The type of the object to convert to.
268268
*/
269269
inline fun <reified T : Any> DocumentReference.dataObjects(
270-
metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE
270+
metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE
271271
): Flow<T?> = snapshots(metadataChanges).map { it.toObject(T::class.java) }

0 commit comments

Comments
 (0)