Skip to content

Commit 0964f62

Browse files
author
ihsanbal
committed
removing un-used debugable property
1 parent 4a74d7f commit 0964f62

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/src/main/java/com/ihsanbal/logging/LoggingInterceptor.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ import java.util.concurrent.TimeUnit
1414
*/
1515
class LoggingInterceptor private constructor(private val builder: Builder) : Interceptor {
1616

17-
private val isDebug: Boolean
18-
1917
override fun intercept(chain: Interceptor.Chain): Response {
2018
val request = addQueryAndHeaders(chain.request())
2119

22-
if (!isDebug || builder.level == Level.NONE) {
20+
if (builder.level == Level.NONE) {
2321
return chain.proceed(request)
2422
}
2523

@@ -260,8 +258,4 @@ class LoggingInterceptor private constructor(private val builder: Builder) : Int
260258
private var TAG = "LoggingI"
261259
}
262260
}
263-
264-
init {
265-
isDebug = builder.isDebugAble
266-
}
267261
}

0 commit comments

Comments
 (0)