aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mailer
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2016-12-30 15:26:05 +0800
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-30 20:41:10 +0100
commit6510e5775896343f0a69c47ad31c439c7310ff34 (patch)
tree875044ba5fcd58a4cc7e7d1b1215f7217963a30d /modules/mailer
parentd0490c187cf6720ed4d0e8ce14c8706e61adaf1f (diff)
downloadgitea-6510e5775896343f0a69c47ad31c439c7310ff34.tar.gz
gitea-6510e5775896343f0a69c47ad31c439c7310ff34.zip
fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'modules/mailer')
-rw-r--r--modules/mailer/mailer.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go
index 3201075f3f..fd1a5db14f 100644
--- a/modules/mailer/mailer.go
+++ b/modules/mailer/mailer.go
@@ -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 {