Commit 944bed6d authored by Derek Parker's avatar Derek Parker

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

email/smtp: Fix type comparison error
parents e8f347a7 20857d71
...@@ -57,7 +57,7 @@ func (cfg *SmtpEmailerConfig) UnmarshalJSON(data []byte) error { ...@@ -57,7 +57,7 @@ func (cfg *SmtpEmailerConfig) UnmarshalJSON(data []byte) error {
if smtpCfg.Host == "" { if smtpCfg.Host == "" {
return errors.New("must set SMTP host") return errors.New("must set SMTP host")
} }
if smtpCfg.Port == "" { if smtpCfg.Port == 0 {
return errors.New("must set SMTP port") return errors.New("must set SMTP port")
} }
*cfg = SmtpEmailerConfig(smtpCfg) *cfg = SmtpEmailerConfig(smtpCfg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment