Browse Source

email/smtp: Fix type comparison error

Fixes #134
pull/136/head
Derek Parker 11 years ago
parent
commit
20857d71e7
  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