Skip to content

Commit

Permalink
Fix previously introduced cancellation exception
Browse files Browse the repository at this point in the history
  • Loading branch information
atick-faisal committed Oct 13, 2024
1 parent 1d79c5b commit d174cfa
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import dev.atick.network.api.JetpackRestApi
import dev.atick.network.models.NetworkPost
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import java.util.concurrent.CancellationException
import javax.inject.Inject

/**
Expand All @@ -45,7 +44,6 @@ class NetworkDataSourceImpl @Inject constructor(
override suspend fun getPosts(): List<NetworkPost> {
return withContext(ioDispatcher) {
jetpackRestApi.getPosts()
throw CancellationException("Not yet implemented")
}
}

Expand Down

0 comments on commit d174cfa

Please sign in to comment.