diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 74a2938f3..e244a94ed 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/internal/handshake/crypto_setup.go b/internal/handshake/crypto_setup.go index 310a34c06..0420a5f92 100644 --- a/internal/handshake/crypto_setup.go +++ b/internal/handshake/crypto_setup.go @@ -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,