Skip to content

Commit 587a0f1

Browse files
committed
Minor changes based on feedback
1 parent c9a3cd5 commit 587a0f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tasks/Request1Blocking.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fun loadContributorsBlocking(service: GitHubService, req: RequestData) : List<Us
88
.getOrgReposCall(req.org)
99
.execute() // Executes request and blocks the current thread
1010
.also { logRepos(req, it) }
11-
.body() ?: listOf()
11+
.body() ?: emptyList()
1212

1313
return repos.flatMap { repo ->
1414
service
@@ -20,5 +20,5 @@ fun loadContributorsBlocking(service: GitHubService, req: RequestData) : List<Us
2020
}
2121

2222
fun <T> Response<List<T>>.bodyList(): List<T> {
23-
return body() ?: listOf()
23+
return body() ?: emptyList()
2424
}

0 commit comments

Comments
 (0)