This commit is contained in:
Mikaël Cluseau 2019-02-04 14:41:51 +11:00
parent 4a77737d8b
commit bef898bc3f

View File

@ -29,7 +29,7 @@ func writeNewConfig(reader io.Reader) (err error) {
defer os.Remove(out.Name()) defer os.Remove(out.Name())
_, err = io.Copy(out, req.Request.Body) _, err = io.Copy(out, reader)
out.Close() out.Close()
if err != nil { if err != nil {
return return