You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
address review lint issues (#4354)
This commit is contained in:
@@ -252,10 +252,10 @@ func (e *kube) WaitStep(ctx context.Context, step *types.Step, taskUUID string)
|
||||
|
||||
finished := make(chan bool)
|
||||
|
||||
podUpdated := func(_, new any) {
|
||||
pod, ok := new.(*v1.Pod)
|
||||
podUpdated := func(_, newPod any) {
|
||||
pod, ok := newPod.(*v1.Pod)
|
||||
if !ok {
|
||||
log.Error().Msgf("could not parse pod: %v", new)
|
||||
log.Error().Msgf("could not parse pod: %v", newPod)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -328,10 +328,10 @@ func (e *kube) TailStep(ctx context.Context, step *types.Step, taskUUID string)
|
||||
|
||||
up := make(chan bool)
|
||||
|
||||
podUpdated := func(_, new any) {
|
||||
pod, ok := new.(*v1.Pod)
|
||||
podUpdated := func(_, newPod any) {
|
||||
pod, ok := newPod.(*v1.Pod)
|
||||
if !ok {
|
||||
log.Error().Msgf("could not parse pod: %v", new)
|
||||
log.Error().Msgf("could not parse pod: %v", newPod)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user