1
0
Fork 0
mirror of https://github.com/Luzifer/yaml-vault.git synced 2024-12-20 20:11:16 +00:00

fix replacing config with empty file

This commit is contained in:
Knut Ahlers 2016-07-11 18:18:03 +02:00
parent 55baf95ff3
commit d389ec8031
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -216,5 +216,6 @@ func parseImportFile(in []byte) (out []byte, err error) {
} }
buf := bytes.NewBuffer([]byte{}) buf := bytes.NewBuffer([]byte{})
return buf.Bytes(), t.Execute(buf, nil) err = t.Execute(buf, nil)
return buf.Bytes(), err
} }