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

email/smtp: Fix type comparison error
This commit is contained in:
Derek Parker 2015-09-25 15:36:55 -07:00
commit 944bed6d2e

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)