Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ndiritumichael committed Oct 18, 2024
1 parent 963b53b commit a2d1525
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ class MainActivity : ComponentActivity() {
Toast.LENGTH_SHORT,
).show()
} else {
res?.accessToken?.let { insertToken(it) }
res?.accessToken?.let { insertToken(it) }?:run {
Toast
.makeText(
this,
"Something went wrong please try again",
Toast.LENGTH_SHORT,
).show()
}
}
}
}
Expand Down

0 comments on commit a2d1525

Please sign in to comment.