mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-28 18:31:01 +00:00
chore: clean
This commit is contained in:
@@ -372,6 +372,7 @@ object CommentsAPI {
|
||||
}
|
||||
errorMessage("Failed to login after multiple attempts")
|
||||
}
|
||||
|
||||
private fun errorMessage(reason: String) {
|
||||
if (commentsEnabled) Logger.log(reason)
|
||||
if (isOnline && commentsEnabled) snackString(reason)
|
||||
@@ -410,7 +411,7 @@ object CommentsAPI {
|
||||
return map
|
||||
}
|
||||
|
||||
private fun requestBuilder(client: OkHttpClient = Injekt.get<NetworkHelper>().client): Requests {
|
||||
fun requestBuilder(client: OkHttpClient = Injekt.get<NetworkHelper>().client): Requests {
|
||||
return Requests(
|
||||
client,
|
||||
headerBuilder()
|
||||
|
||||
Reference in New Issue
Block a user