Skip to content

Commit

Permalink
Update email.go
Browse files Browse the repository at this point in the history
  • Loading branch information
8ear authored Oct 15, 2019
1 parent 505a5ec commit fd2a006
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/notifications/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ func newEmailNotifier(c *cobra.Command, acceptedLogLevels []log.Level) t.Notifie
}

func (e *emailTypeNotifier) buildMessage(entries []*log.Entry) []byte {
// If variable SubjectTag is empty define emailSubject as "Watchtower updates".
// If variable SubjectTag is set define emailSubject as "$SubjectTag Watchtower updates"
// For example: SubjectTag=[Server Munich] -> "[Server Munich] Watchtower updates ..."
if SubjectTag == nil {
if SubjectTag == "" {
emailSubject := "Watchtower updates"
} else {
emailSubject := SubjectTag + " Watchtower updates"
Expand Down

0 comments on commit fd2a006

Please sign in to comment.