Browse Source

Merge pull request #136 from derekparker/fix-compilation-issues

email/smtp: Fix type comparison error
pull/139/head
Derek Parker 11 years ago
parent
commit
944bed6d2e
  1. 2
      email/smtp.go

2
email/smtp.go

@ -57,7 +57,7 @@ func (cfg *SmtpEmailerConfig) UnmarshalJSON(data []byte) error {
if smtpCfg.Host == "" {
return errors.New("must set SMTP host")
}
if smtpCfg.Port == "" {
if smtpCfg.Port == 0 {
return errors.New("must set SMTP port")
}
*cfg = SmtpEmailerConfig(smtpCfg)

Loading…
Cancel
Save