Skip to content

Commit

Permalink
Run make -C flytepropelelr lint-fix
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed Dec 19, 2024
1 parent 9ca3acf commit d653b15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flytepropeller/pkg/controller/nodes/array/event_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ func (e *externalResourcesEventRecorder) process(ctx context.Context, nCtx inter
RetryAttempt: retryAttempt,
Phase: taskExecutionEvent.GetPhase(),
CacheStatus: cacheStatus,
CustomInfo: taskExecutionEvent.CustomInfo,
CustomInfo: taskExecutionEvent.GetCustomInfo(),
}

if taskExecutionEvent.GetMetadata() != nil && len(taskExecutionEvent.GetMetadata().ExternalResources) == 1 {
externalResourceInfo.CustomInfo = taskExecutionEvent.GetMetadata().ExternalResources[0].CustomInfo
if taskExecutionEvent.GetMetadata() != nil && len(taskExecutionEvent.GetMetadata().GetExternalResources()) == 1 {
externalResourceInfo.CustomInfo = taskExecutionEvent.GetMetadata().GetExternalResources()[0].GetCustomInfo()
}

Check warning on line 151 in flytepropeller/pkg/controller/nodes/array/event_recorder.go

View check run for this annotation

Codecov / codecov/patch

flytepropeller/pkg/controller/nodes/array/event_recorder.go#L150-L151

Added lines #L150 - L151 were not covered by tests

e.externalResources = append(e.externalResources, &externalResourceInfo)
Expand Down

0 comments on commit d653b15

Please sign in to comment.