Skip to content

Commit

Permalink
Merge pull request #250 from Gentleelephant/release-2.5-fix-307-pr
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
benjaminhuo committed Mar 7, 2024
2 parents 0b85773 + 5b75c59 commit 055bf5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.5.0-rc.2
v2.5.0-rc.3
4 changes: 3 additions & 1 deletion pkg/notify/notifier/email/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"strings"
"time"

"github.com/modern-go/reflect2"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/kubesphere/notification-manager/pkg/async"
Expand Down Expand Up @@ -203,7 +205,7 @@ func (n *Notifier) send(ctx context.Context, to, subject, body string) error {
if err != nil {
return err
}
if conn == nil {
if reflect2.IsNil(conn) {
return utils.Errorf("failed to connect to %s", addr)
}

Expand Down

0 comments on commit 055bf5a

Please sign in to comment.