Skip to content

Commit

Permalink
ci: update golangci-lint to v1.52.2, update Go version (#3740)
Browse files Browse the repository at this point in the history
* ci: update golangci-lint to v1.52.2, update Go version

* run gofumpt
  • Loading branch information
marten-seemann committed Mar 28, 2023
1 parent f20b0d3 commit 56a6d8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19.x"
go-version: "1.20.x"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48.0
version: v1.52.2
3 changes: 1 addition & 2 deletions internal/handshake/crypto_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ readLoop:
func (h *cryptoSetup) checkEncryptionLevel(msgType messageType, encLevel protocol.EncryptionLevel) error {
var expected protocol.EncryptionLevel
switch msgType {
case typeClientHello,
typeServerHello:
case typeClientHello, typeServerHello:
expected = protocol.EncryptionInitial
case typeEncryptedExtensions,
typeCertificate,
Expand Down

0 comments on commit 56a6d8d

Please sign in to comment.