diff options
Diffstat (limited to 'common/src/main/kotlin/helpers.kt')
-rw-r--r-- | common/src/main/kotlin/helpers.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/main/kotlin/helpers.kt b/common/src/main/kotlin/helpers.kt index cd803f64..2eba2d16 100644 --- a/common/src/main/kotlin/helpers.kt +++ b/common/src/main/kotlin/helpers.kt @@ -63,7 +63,7 @@ fun ByteArray.encodeBase64(): String = Base64.getEncoder().encodeToString(this) /* ----- InputStream ----- */ /** Unzip an input stream and run [lambda] over each entry */ -fun InputStream.unzipEach(lambda: (String, InputStream) -> Unit) { +inline fun InputStream.unzipEach(lambda: (String, InputStream) -> Unit) { ZipInputStream(this).use { zip -> while (true) { val entry = zip.getNextEntry() |