return actual value from wrapped stream provider

This commit is contained in:
Vladimir Krivosheev
2016-12-28 11:46:23 +01:00
parent 004e0d7604
commit ddfe5a3589
@@ -18,10 +18,7 @@ class StreamProviderWrapper : StreamProvider {
roamingType: RoamingType,
filter: Function1<String, Boolean>,
processor: Function3<String, InputStream, Boolean, Boolean>): Boolean {
return streamProvider?.let {
it.processChildren(path, roamingType, filter, processor)
true
} ?: false
return streamProvider?.processChildren(path, roamingType, filter, processor) ?: false
}
override fun write(fileSpec: String, content: ByteArray, size: Int, roamingType: RoamingType) {