Skip to content

Commit 47b776a

Browse files
vdemeestertekton-robot
authored andcommitted
lint: for loop in plateDebugScriptInContainers
Signed-off-by: Vincent Demeester <[email protected]>
1 parent b8f92d8 commit 47b776a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pod/script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func encodeScript(script string) string {
215215
// placeDebugScriptInContainers inserts debug scripts into containers. It capsules those scripts to files in initContainer,
216216
// then executes those scripts in target containers.
217217
func placeDebugScriptInContainers(containers []corev1.Container, initContainer *corev1.Container) {
218-
for i := range len(containers) {
218+
for i := range containers {
219219
debugInfoVolumeMount := corev1.VolumeMount{
220220
Name: debugInfoVolumeName,
221221
MountPath: filepath.Join(debugInfoDir, strconv.Itoa(i)),

0 commit comments

Comments
 (0)