Skip to content

Commit e983098

Browse files
committed
refactor: 숫자 범위 표현식 변경
1 parent 328d9f8 commit e983098

File tree

1 file changed

+2
-2
lines changed
  • presentation/src/main/java/com/stop/ui/mission

1 file changed

+2
-2
lines changed

presentation/src/main/java/com/stop/ui/mission/TMap.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class TMap(
3131
}
3232

3333
private fun checkKoreaLocation(location: Location): Boolean {
34-
return location.longitude > KOREA_LONGITUDE_MIN && location.longitude < KOREA_LONGITUDE_MAX
35-
&& location.latitude > KOREA_LATITUDE_MIN && location.latitude < KOREA_LATITUDE_MAX
34+
return location.longitude in KOREA_LONGITUDE_MIN..KOREA_LONGITUDE_MAX
35+
&& location.latitude in KOREA_LATITUDE_MIN..KOREA_LATITUDE_MAX
3636
}
3737

3838
fun init() {

0 commit comments

Comments
 (0)