From 2149af27d03cafeaae94f2885a3374a513f51e7a Mon Sep 17 00:00:00 2001
From: fowl-ow <git26482@gmx.net>
Date: Fri, 22 Jul 2022 09:49:35 +0200
Subject: [PATCH] replaced repeating code with existing function

the function to remove code repetition was forgotten in one of the two places, fixed it
---
 src/tasks/Request1Blocking.kt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
+}