Skip to content

Commit

Permalink
acme/autocert: change a var to a const
Browse files Browse the repository at this point in the history
A var isn't needed and a const is what the upstream (Go 1.10+) version
it's copying is.

Change-Id: I335270be3b3d09ac3c22cf6fb889a74ac39b8f1d
Reviewed-on: https://go-review.googlesource.com/116379
Reviewed-by: Filippo Valsorda <[email protected]>
  • Loading branch information
bradfitz authored and FiloSottile committed Jun 6, 2018
1 parent d162186 commit b47b158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/autocert/autocert.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func supportsECDSA(hello *tls.ClientHelloInfo) bool {
ecdsaOK := false
schemeLoop:
for _, scheme := range hello.SignatureSchemes {
var tlsECDSAWithSHA1 tls.SignatureScheme = 0x0203 // constant added in Go 1.10
const tlsECDSAWithSHA1 tls.SignatureScheme = 0x0203 // constant added in Go 1.10
switch scheme {
case tlsECDSAWithSHA1, tls.ECDSAWithP256AndSHA256,
tls.ECDSAWithP384AndSHA384, tls.ECDSAWithP521AndSHA512:
Expand Down

0 comments on commit b47b158

Please sign in to comment.