imports: fix io.Copy call for the message body
This commit is contained in:
parent
346a0443db
commit
74c2b8fa37
|
@ -98,7 +98,7 @@ func ImportMessage(c *protonmail.Client, r io.Reader) error {
|
||||||
}
|
}
|
||||||
defer ewc.Close()
|
defer ewc.Close()
|
||||||
|
|
||||||
if _, err := io.Copy(w, body); err != nil {
|
if _, err := io.Copy(ewc, body); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := ewc.Close(); err != nil {
|
if err := ewc.Close(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue