email/smtp: Fix type comparison error

Fixes #134
This commit is contained in:
Derek Parker 2015-09-25 12:49:57 -07:00
parent e8f347a738
commit 20857d71e7

View file

@ -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)