Skip to content

Commit 0c4a797

Browse files
committed
style : Code Review 반영
1 parent 3bbe2a1 commit 0c4a797

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

data/src/main/java/com/stop/data/repository/NearPlaceRepositoryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class NearPlaceRepositoryImpl @Inject constructor(
1717
centerLon: Double,
1818
centerLat: Double,
1919
appKey: String
20-
): Flow<List<Place>> = flow<List<Place>> {
20+
): Flow<List<Place>> = flow {
2121
emit(
2222
nearPlaceRemoteDataSource.getNearPlaces(
2323
version,
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
package com.stop.model
22

3-
open class Event<out T>(private val content : T){
3+
class Event<out T>(private val content: T) {
44

55
var hasBeenHandled = false
66
private set
77

8-
fun getContentIfNotHandled() : T?{
9-
return if (hasBeenHandled){
8+
fun getContentIfNotHandled(): T? {
9+
return if (hasBeenHandled) {
1010
null
11-
}else {
11+
} else {
1212
hasBeenHandled = true
1313
content
1414
}
1515
}
1616

17-
fun peekContent() : T = content
17+
fun peekContent(): T = content
1818

1919
}

0 commit comments

Comments
 (0)