Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tasks/Request1Blocking.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fun loadContributorsBlocking(service: GitHubService, req: RequestData) : List<Us
.getOrgReposCall(req.org)
.execute() // Executes request and blocks the current thread
.also { logRepos(req, it) }
.body() ?: emptyList()
.bodyList()

return repos.flatMap { repo ->
service
Expand All @@ -21,4 +21,4 @@ fun loadContributorsBlocking(service: GitHubService, req: RequestData) : List<Us

fun <T> Response<List<T>>.bodyList(): List<T> {
return body() ?: emptyList()
}
}