Merge pull request #136 from derekparker/fix-compilation-issues
email/smtp: Fix type comparison error
This commit is contained in:
commit
944bed6d2e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue