v2: housekeeping: address minor lint complaints (#2957)

* v2: housekeeping: update tools

* v2: housekeeping: adhere to US locale in spelling

* v2: housekeeping: simplify code
This commit is contained in:
Mohammed Al Sahaf 2020-01-03 21:33:22 +03:00 committed by Matt Holt
parent 8c7c2e4af2
commit dff78d82ce
9 changed files with 12 additions and 15 deletions

View file

@ -179,7 +179,7 @@ func (p *ConnectionPolicy) buildStandardTLSConfig(ctx caddy.Context) error {
// session ticket key rotation
tlsApp.SessionTickets.register(cfg)
ctx.OnCancel(func() {
// do cleanup when the context is cancelled because,
// do cleanup when the context is canceled because,
// though unlikely, it is possible that a context
// needing a TLS server config could exist for less
// than the lifetime of the whole app