mirror of
https://github.com/Luzifer/yaml-vault.git
synced 2024-12-20 12:01:18 +00:00
fix replacing config with empty file
This commit is contained in:
parent
55baf95ff3
commit
d389ec8031
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -216,5 +216,6 @@ func parseImportFile(in []byte) (out []byte, err error) {
|
|||
}
|
||||
|
||||
buf := bytes.NewBuffer([]byte{})
|
||||
return buf.Bytes(), t.Execute(buf, nil)
|
||||
err = t.Execute(buf, nil)
|
||||
return buf.Bytes(), err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue