Flush happens automatically on close
This commit is contained in:
parent
5ecae14972
commit
7ff764ca1f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue