diff --git a/src/tasks/Request1Blocking.kt b/src/tasks/Request1Blocking.kt index 346c149..01a4eb2 100644 --- a/src/tasks/Request1Blocking.kt +++ b/src/tasks/Request1Blocking.kt @@ -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 @@ -21,4 +21,4 @@ fun loadContributorsBlocking(service: GitHubService, req: RequestData) : List<Us fun <T> Response<List<T>>.bodyList(): List<T> { return body() ?: emptyList() -} \ No newline at end of file +}