diff --git a/imap/monitor.go b/imap/monitor.go index da47fc98..b05dd9d2 100644 --- a/imap/monitor.go +++ b/imap/monitor.go @@ -115,8 +115,8 @@ func (im *Monitor) Shutdown() error { return nil } -// checkForNewEmails logs into an IMAP account and checks unread emails -// for the rid campaign identifier. +// checkForNewEmails logs into an IMAP account and checks unread emails for the +// rid campaign identifier. func checkForNewEmails(im models.IMAP) { im.Host = im.Host + ":" + strconv.Itoa(int(im.Port)) // Append port mailServer := Mailbox{ diff --git a/models/campaign.go b/models/campaign.go index debca6ab..3867122f 100644 --- a/models/campaign.go +++ b/models/campaign.go @@ -609,7 +609,7 @@ func PostCampaign(c *Campaign, uid int64) error { return tx.Commit().Error } -//DeleteCampaign deletes the specified campaign +// DeleteCampaign deletes the specified campaign func DeleteCampaign(id int64) error { log.WithFields(logrus.Fields{ "campaign_id": id,