Flush happens automatically on close

This commit is contained in:
Zahary Karadjov 2020-05-11 14:39:56 +03:00
parent 5ecae14972
commit 7ff764ca1f
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 0 additions and 1 deletions

View File

@ -109,7 +109,6 @@ template saveFile*(Format: type, filename: string, value: auto, params: varargs[
try:
var writer = unpackArgs(init, [WriterType(Format), stream, params])
writer.writeValue(value)
flush stream
finally:
close stream