mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Fix linter issues
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user