File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
data/src/main/java/com/stop/data/repository
presentation/src/main/java/com/stop/model Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ internal class NearPlaceRepositoryImpl @Inject constructor(
17
17
centerLon : Double ,
18
18
centerLat : Double ,
19
19
appKey : String
20
- ): Flow <List <Place >> = flow< List < Place >> {
20
+ ): Flow <List <Place >> = flow {
21
21
emit(
22
22
nearPlaceRemoteDataSource.getNearPlaces(
23
23
version,
Original file line number Diff line number Diff line change 1
1
package com.stop.model
2
2
3
- open class Event <out T >(private val content : T ){
3
+ class Event <out T >(private val content : T ) {
4
4
5
5
var hasBeenHandled = false
6
6
private set
7
7
8
- fun getContentIfNotHandled () : T ? {
9
- return if (hasBeenHandled){
8
+ fun getContentIfNotHandled (): T ? {
9
+ return if (hasBeenHandled) {
10
10
null
11
- }else {
11
+ } else {
12
12
hasBeenHandled = true
13
13
content
14
14
}
15
15
}
16
16
17
- fun peekContent () : T = content
17
+ fun peekContent (): T = content
18
18
19
19
}
You can’t perform that action at this time.
0 commit comments