From 20857d71e793b9c58392f1daf3c15b1d1a1908d3 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Fri, 25 Sep 2015 12:49:57 -0700 Subject: [PATCH] email/smtp: Fix type comparison error Fixes #134 --- email/smtp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email/smtp.go b/email/smtp.go index b8568ead..22a8b539 100644 --- a/email/smtp.go +++ b/email/smtp.go @@ -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)