Fix linter issues

This commit is contained in:
Herman Slatman
2025-02-18 11:04:54 +01:00
parent 86c04f0ce8
commit 27944b4eae
33 changed files with 308 additions and 112 deletions

View File

@@ -14,6 +14,8 @@ import (
"math/bits"
"strconv"
"strings"
"github.com/smallstep/certificates/internal/cast"
)
var (
@@ -80,7 +82,7 @@ func base128IntLength(n uint64) int {
func appendBase128Int(dst []byte, n uint64) []byte {
for i := base128IntLength(n) - 1; i >= 0; i-- {
o := byte(n >> uint(i*7))
o := byte(n >> cast.Uint(i*7))
o &= 0x7f
if i != 0 {
o |= 0x80

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//nolint:revive,gocritic,errorlint,unconvert // code copied from crypto/x509
//nolint:revive,gocritic,errorlint,unconvert,staticcheck // code copied from crypto/x509
package legacyx509
import (