Skip to content

Commit

Permalink
Inline error
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Oct 29, 2024
1 parent e5165cb commit 85d0cf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/runtime.v2/core/trainingruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ func (r *TrainingRuntime) buildObjects(
return nil, err
}

err := r.framework.RunEnforcePodGroupPolicyPlugins(info, trainJob, podGroupPolicy)
if err != nil {
if err := r.framework.RunEnforcePodGroupPolicyPlugins(info, trainJob, podGroupPolicy); err != nil {
return nil, err
}

Expand Down

0 comments on commit 85d0cf1

Please sign in to comment.