Skip to content

Commit 54df48c

Browse files
committed
Style : Dispatcher IO 변경 빼기
1 parent 82cc412 commit 54df48c

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

presentation/src/main/java/com/stop/AlarmWorker.kt

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import androidx.work.workDataOf
1010
import com.stop.domain.usecase.nearplace.GetNearPlacesUseCase
1111
import dagger.assisted.Assisted
1212
import dagger.assisted.AssistedInject
13-
import kotlinx.coroutines.Dispatchers
14-
import kotlinx.coroutines.withContext
1513

1614
// 일단은 NearPlaceUseCase 이용하여서 데이터 가져오기 구현
1715

@@ -34,17 +32,14 @@ class AlarmWorker @AssistedInject constructor(
3432
}
3533

3634
private suspend fun callApi() {
37-
withContext(Dispatchers.IO) {
38-
val list = getNearPlacesUseCase.getNearPlaces(
39-
1,
40-
"아남타워",
41-
126.969652,
42-
37.553836,
43-
BuildConfig.TMAP_APP_KEY
44-
)
45-
Log.e("ABC", list.toString())
46-
}
47-
35+
val list = getNearPlacesUseCase.getNearPlaces(
36+
1,
37+
"아남타워",
38+
126.969652,
39+
37.553836,
40+
BuildConfig.TMAP_APP_KEY
41+
)
42+
Log.e("ABC", list.toString())
4843
}
4944

5045
}

0 commit comments

Comments
 (0)