Skip to content

Commit 3667544

Browse files
vdemeestertekton-robot
authored andcommitted
Fix lint on master 🚚
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent 2973b6e commit 3667544

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎cmd/pullrequest-init/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ import (
1919
"context"
2020
"flag"
2121
"fmt"
22+
"os"
23+
2224
"github.com/tektoncd/pipeline/pkg/pullrequest"
2325
"go.uber.org/zap"
2426
"knative.dev/pkg/logging"
25-
"os"
2627
)
2728

2829
var (

‎pkg/pod/status.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func areStepsComplete(pod *corev1.Pod) bool {
256256
}
257257

258258
func sortContainerStatuses(podInstance *corev1.Pod) {
259-
sort.Slice(podInstance.Status.ContainerStatuses[:], func(i, j int) bool {
259+
sort.Slice(podInstance.Status.ContainerStatuses, func(i, j int) bool {
260260
return podInstance.Status.ContainerStatuses[i].State.Terminated.FinishedAt.Time.Before(podInstance.Status.ContainerStatuses[j].State.Terminated.FinishedAt.Time)
261261
})
262262

0 commit comments

Comments
 (0)