forked from mystiq/dex
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 == "" {
|
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)
|
||||||
|
|
Loading…
Reference in a new issue