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:
|
try:
|
||||||
var writer = unpackArgs(init, [WriterType(Format), stream, params])
|
var writer = unpackArgs(init, [WriterType(Format), stream, params])
|
||||||
writer.writeValue(value)
|
writer.writeValue(value)
|
||||||
flush stream
|
|
||||||
finally:
|
finally:
|
||||||
close stream
|
close stream
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue