mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
IDEA template.
This commit is contained in:
parent
d7a86df947
commit
c1c87d976d
2 changed files with 39 additions and 16 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue