Skip to content

Commit 52d26b9

Browse files
author
Thomas Desveaux
committed
fix lint
1 parent 377fc65 commit 52d26b9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cmd/dave/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ func main() {
5050
Handler: wdHandler,
5151
}
5252

53-
var tls_config *tls.Config
53+
var tlsConfig *tls.Config
5454
if config.TLS != nil {
55-
var secure_ciphers []uint16
56-
for _, cipher_suite := range tls.CipherSuites() {
57-
if !cipher_suite.Insecure {
58-
secure_ciphers = append(secure_ciphers, cipher_suite.ID)
55+
var secureCiphers []uint16
56+
for _, cipherSuite := range tls.CipherSuites() {
57+
if !cipherSuite.Insecure {
58+
secureCiphers = append(secureCiphers, cipherSuite.ID)
5959
}
6060
}
61-
tls_config = &tls.Config{
62-
CipherSuites: secure_ciphers,
61+
tlsConfig = &tls.Config{
62+
CipherSuites: secureCiphers,
6363
MinVersion: tls.VersionTLS12,
6464
}
6565
}
@@ -68,7 +68,7 @@ func main() {
6868
connAddr := fmt.Sprintf("%s:%s", config.Address, config.Port)
6969
server := http.Server{
7070
Addr: connAddr,
71-
TLSConfig: tls_config,
71+
TLSConfig: tlsConfig,
7272
}
7373

7474
if config.TLS != nil {

0 commit comments

Comments
 (0)