Skip to content

Commit 5501287

Browse files
committed
style: expression body 적용
1 parent 4ca45e0 commit 5501287

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

data/src/main/java/com/stop/data/remote/model/route/gyeonggi/GyeonggiBusLastTime.kt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ internal data class GyeonggiBusLastTime(
2222
@PropertyElement(name = "nPeekAlloc")
2323
val maxTerm: String, // 최대 배차시간
2424
) {
25-
fun toDomain(): com.stop.domain.model.route.gyeonggi.GyeonggiBusLastTime {
26-
return com.stop.domain.model.route.gyeonggi.GyeonggiBusLastTime(
27-
upLastTime = upLastTime,
28-
startStationId = startStationId,
29-
startStationName = startStationName,
30-
downLastTime = downLastTime,
31-
endStationId = endStationId,
32-
endStationName = endStationName,
33-
minTerm = minTerm,
34-
maxTerm = maxTerm,
35-
)
36-
}
25+
fun toDomain() = com.stop.domain.model.route.gyeonggi.GyeonggiBusLastTime(
26+
upLastTime = upLastTime,
27+
startStationId = startStationId,
28+
startStationName = startStationName,
29+
downLastTime = downLastTime,
30+
endStationId = endStationId,
31+
endStationName = endStationName,
32+
minTerm = minTerm,
33+
maxTerm = maxTerm,
34+
)
3735
}

data/src/main/java/com/stop/data/remote/model/route/gyeonggi/GyeonggiBusRoute.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ internal data class GyeonggiBusRoute(
1010
@PropertyElement(name = "routeName")
1111
val busName: String,
1212
) {
13-
fun toDomain(): com.stop.domain.model.route.gyeonggi.GyeonggiBusRoute {
14-
return com.stop.domain.model.route.gyeonggi.GyeonggiBusRoute(
15-
routeId = routeId,
16-
busName = busName,
17-
)
18-
}
13+
fun toDomain() = com.stop.domain.model.route.gyeonggi.GyeonggiBusRoute(
14+
routeId = routeId,
15+
busName = busName,
16+
)
1917
}

data/src/main/java/com/stop/data/remote/model/route/gyeonggi/GyeonggiBusStation.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ internal data class GyeonggiBusStation(
1414
@PropertyElement(name = "y")
1515
val latitude: String,
1616
) {
17-
fun toDomain(): com.stop.domain.model.route.gyeonggi.GyeonggiBusStation {
18-
return com.stop.domain.model.route.gyeonggi.GyeonggiBusStation(
19-
stationId = stationId,
20-
stationName = stationName,
21-
longitude = longitude,
22-
latitude = latitude,
23-
)
24-
}
17+
fun toDomain() = com.stop.domain.model.route.gyeonggi.GyeonggiBusStation(
18+
stationId = stationId,
19+
stationName = stationName,
20+
longitude = longitude,
21+
latitude = latitude,
22+
)
2523
}

0 commit comments

Comments
 (0)