Skip to content

Commit c41c911

Browse files
committed
style: 지하철의 외선, 내선, 호선에 따른 보정 값을 나타내는 변수의 이름 좀 더 명확하게 수정
1 parent 4d6e92b commit c41c911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

domain/src/main/java/com/stop/domain/usecase/route/GetLastTransportTimeUseCaseImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ internal class GetLastTransportTimeUseCaseImpl @Inject constructor(
199199
subwayCircleType,
200200
weekType
201201
)
202-
val suffix = checkStationCase(
202+
val correctionValueByStationCase = checkStationCase(
203203
transportIdRequest.stationType,
204204
subwayCircleType,
205205
startStationIndex,
@@ -218,7 +218,7 @@ internal class GetLastTransportTimeUseCaseImpl @Inject constructor(
218218
*
219219
*/
220220
val result = lastTrainTime.firstOrNull {
221-
enableDestinationStation.contains(it.destinationStationName).xor(suffix).not()
221+
enableDestinationStation.contains(it.destinationStationName).xor(correctionValueByStationCase).not()
222222
|| transportIdRequest.destinationStation.name == it.destinationStationName
223223
}?.leftTime ?: throw IllegalArgumentException("막차 시간 로직이 잘못되었습니다.")
224224

0 commit comments

Comments
 (0)