Skip to content

Commit 4858a9c

Browse files
committed
lint
1 parent c7f4d75 commit 4858a9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

x/ref/lib/aws/vxray/internal/eks_info.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
k8sCert = "ca.crt"
2121
k8sToken = "token"
2222
k8sAPIHost = "kubernetes.default.svc"
23-
kContainerIDLen = 64
23+
containerIDLen = 64
2424
)
2525

2626
func GetEKSClusterName(ctx context.Context, configMap, keyName string) (string, error) {
@@ -46,7 +46,7 @@ func getConfigMap(ctx context.Context, configMap string) (map[string]string, err
4646
}
4747

4848
roots := x509.NewCertPool()
49-
ok := roots.AppendCertsFromPEM([]byte(rootPEM))
49+
ok := roots.AppendCertsFromPEM(rootPEM)
5050
if !ok {
5151
panic("failed to parse root certificate")
5252
}
@@ -99,8 +99,8 @@ func GetContainerID(cgroupFile string) (string, error) {
9999
cid := ""
100100
for sc.Scan() {
101101
line := sc.Text()
102-
if l := len(line); l > kContainerIDLen {
103-
cid = line[l-kContainerIDLen:]
102+
if l := len(line); l > containerIDLen {
103+
cid = line[l-containerIDLen:]
104104
break
105105
}
106106
}

0 commit comments

Comments
 (0)