Skip to content

Commit baceb2f

Browse files
joeybloggsjoeybloggs
authored andcommitted
correct some spelling mistakes
1 parent 4095cee commit baceb2f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

handlers/email/email.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (email *Email) SetKeepAliveTimout(keepAlive time.Duration) {
8888
email.keepalive = keepAlive
8989
}
9090

91-
// SetEmailTemplate sets Email's html tempalte to be used for email body
91+
// SetEmailTemplate sets Email's html template to be used for email body
9292
func (email *Email) SetEmailTemplate(htmlTemplate string) {
9393
email.templateHTML = htmlTemplate
9494
}

handlers/email/email_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func TestBadDial(t *testing.T) {
171171
}
172172

173173
func TestBadEmailTemplate(t *testing.T) {
174-
badTemplate := `{{ .NonExistantField }}` // referencing non-existant field
174+
badTemplate := `{{ .NonExistentField }}` // referencing non-existent field
175175
email := New("localhost", 3041, "", "", "[email protected]", []string{"[email protected]"})
176176
email.SetEmailTemplate(badTemplate)
177177
log.RegisterHandler(email, log.InfoLevel)
@@ -184,8 +184,6 @@ func TestBadSend(t *testing.T) {
184184
email := New("localhost", 3041, "", "", "[email protected]", []string{"[email protected]"})
185185
log.RegisterHandler(email, log.InfoLevel)
186186

187-
var msg string
188-
189187
server, err := net.Listen("tcp", ":3041")
190188
if err != nil {
191189
t.Errorf("Expected <nil> Got '%s'", err)
@@ -212,7 +210,7 @@ func TestBadSend(t *testing.T) {
212210
bufout: bufio.NewWriter(conn),
213211
}
214212

215-
msg = handleClient(c, true)
213+
handleClient(c, true)
216214
}
217215
}()
218216

handlers/http/hipchat/hipchat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (hc *HipChat) GetDisplayColor(level log.Level) string {
173173
return hc.colors[level]
174174
}
175175

176-
// SetEmailTemplate sets Email's html tempalte to be used for email body
176+
// SetEmailTemplate sets Email's html template to be used for email body
177177
func (hc *HipChat) SetEmailTemplate(htmlTemplate string) {
178178
hc.templateHTML = htmlTemplate
179179
}

0 commit comments

Comments
 (0)