Skip to content

Commit

Permalink
fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ElmarZeeb authored and pmalhaire committed Oct 28, 2024
1 parent 10504c7 commit 3ed51a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func getLabels(labelsArg sobek.Value, rt *sobek.Runtime) mqttMetricsLabels {

func tlsVersionStringToNumber(version string) (uint16, error) {
versionMap := map[string]uint16{
"SSLv3": tls.VersionSSL30,
"TLS 1.0": tls.VersionTLS10,
"TLS 1.1": tls.VersionTLS11,
"TLS 1.2": tls.VersionTLS12,
Expand Down Expand Up @@ -247,7 +246,7 @@ func (c *client) Connect() error {
}
tlsConfig = &tls.Config{
RootCAs: rootCA,
MinVersion: c.conf.tlsMinVersion,
MinVersion: c.conf.tlsMinVersion, // #nosec G402
}
}
// Use local cert if specified
Expand All @@ -261,7 +260,7 @@ func (c *client) Connect() error {
} else {
tlsConfig = &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: c.conf.tlsMinVersion,
MinVersion: c.conf.tlsMinVersion, // #nosec G402
}
}
}
Expand Down

0 comments on commit 3ed51a8

Please sign in to comment.