1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

IDEA template.

This commit is contained in:
Cedric Beust 2016-02-24 21:40:18 +04:00
parent d7a86df947
commit c1c87d976d
2 changed files with 39 additions and 16 deletions

View file

@ -265,7 +265,7 @@ class KFiles {
fun copy(from: InputStream, to: OutputStream) {
var read = from.read()
while (from.available() > 0 && read != -1) {
while (read != -1) {
to.write(read)
read = from.read()
}