Skip to content

Commit

Permalink
Gofmt the tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 13, 2019
1 parent df87368 commit f6b21ee
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions controllers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,16 @@ func NewMainController(params *chaincfg.Params, adminIPs []string,
}

// Format: smtp://[username[:password]@]host
smtpUrl := "smtp://"
if smtpUsername != "" {
smtpUrl += smtpUsername
if smtpPassword != "" {
smtpUrl += ":" + smtpPassword
}
smtpUrl += "@"
}
smtpUrl += smtpHost
smtpUrl := "smtp://"
if smtpUsername != "" {
smtpUrl += smtpUsername
if smtpPassword != "" {
smtpUrl += ":" + smtpPassword
}
smtpUrl += "@"
}
smtpUrl += smtpHost

tlsConfig := tls.Config{}
smtpServer, err := goemail.NewSMTP(smtpUrl, &tlsConfig)
if err != nil {
Expand Down

0 comments on commit f6b21ee

Please sign in to comment.