mirror of
https://codeberg.org/crowci/crow.git
synced 2025-08-07 20:23:03 +03: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