Skip to content

Commit

Permalink
[FIXED] Fix for new static check failure. (#5908)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison authored Sep 20, 2024
2 parents 816061f + 8cf2c59 commit 7610de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3519,7 +3519,7 @@ func tlsVersionFromString(ver string) (uint16, error) {
case "1.3":
return tls.VersionTLS13, nil
}
return 0, fmt.Errorf("Unknown version: %v", ver)
return 0, fmt.Errorf("unknown version: %v", ver)
}

// We use hex here so we don't need multiple versions
Expand Down
2 changes: 1 addition & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func TestTLSMinVersionConfig(t *testing.T) {
if err := os.WriteFile(conf, []byte(fmt.Sprintf(tmpl, `"1.4"`)), 0666); err != nil {
t.Fatalf("Error creating config file: %v", err)
}
if err := s.Reload(); err == nil || !strings.Contains(err.Error(), `Unknown version: 1.4`) {
if err := s.Reload(); err == nil || !strings.Contains(err.Error(), `unknown version: 1.4`) {
t.Fatalf("Unexpected error reloading: %v", err)
}

Expand Down

0 comments on commit 7610de3

Please sign in to comment.