1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

fix gofmt error

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-12-30 15:26:05 +08:00
committed by Kim "BKC" Carlbäcker
parent d0490c187c
commit 6510e57758
7 changed files with 27 additions and 28 deletions

View File

@@ -220,12 +220,12 @@ func (s *sendmailSender) Send(from string, to []string, msg io.WriterTo) error {
return err
}
_,err = msg.WriteTo(pipe)
_, err = msg.WriteTo(pipe)
// we MUST close the pipe or sendmail will hang waiting for more of the message
// Also we should wait on our sendmail command even if something fails
closeError = pipe.Close()
waitError = cmd.Wait()
waitError = cmd.Wait()
if err != nil {
return err
} else if closeError != nil {
@@ -263,7 +263,6 @@ func NewContext() {
return
}
if setting.MailService.UseSendmail {
Sender = &sendmailSender{}
} else {