Skip to content

Commit f727ef9

Browse files
committed
Fix lint warning
1 parent 814204d commit f727ef9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LogcatCountlyLib/src/main/java/info/hannes/timber/CountlyTree.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CountlyTree(private val analytics: Analytics, private val serverIgnoreToke
1919
private val t = serverIgnoreToken
2020
private val regex: Regex = "$t.+?$t|$t[^$t]*$".toRegex()
2121

22-
override fun log(priority: Int, tag: String?, message: String, throwable: Throwable?) {
22+
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
2323
// we ignore INFO, DEBUG and VERBOSE
2424
if (priority <= Log.INFO) {
2525
return
@@ -30,7 +30,7 @@ class CountlyTree(private val analytics: Analytics, private val serverIgnoreToke
3030
}
3131

3232
when {
33-
throwable != null -> analytics.recordError(throwable)
33+
t != null -> analytics.recordError(t)
3434
priority == Log.WARN -> analytics.recordEvent(localMessage)
3535
else -> analytics.recordError(localMessage)
3636
}

0 commit comments

Comments
 (0)