From 7a1580afc02037d8e69faf90a2e83f51d6905692 Mon Sep 17 00:00:00 2001 From: Ndiritu Date: Fri, 18 Oct 2024 14:33:03 +0300 Subject: [PATCH] code cleanup --- app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt b/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt index c2be944..117a8bd 100644 --- a/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt +++ b/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt @@ -117,8 +117,7 @@ class MainActivity : ComponentActivity() { "Something went wrong please try again", Toast.LENGTH_SHORT, ).show() - } else { - val token = res?.accessToken + } else{ res?.accessToken?.let { insertToken(it) } } }