Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Mar 20, 2024
1 parent 1cd0e4e commit a900772
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ func (*jobService) UpdateJob(ctx context.Context, newJob, oldJob *jobTypes.Job,
}
newJobActiveDeadlineSeconds := buildActiveDeadline(newJob.Spec.ActiveDeadlineSeconds)

deployOptionsHasChanged, err := updateDeployOptions(oldJob, newJob)
if err != nil {
return err
deployOptionsHasChanged, updateErr := updateDeployOptions(oldJob, newJob)
if updateErr != nil {
return updateErr
}

// NOTE: we're merging newJob as dst in mergo, newJob is not 100% populated, it just contains the changes the user wants to make
Expand All @@ -312,7 +312,7 @@ func (*jobService) UpdateJob(ctx context.Context, newJob, oldJob *jobTypes.Job,
}

if deployOptionsHasChanged {
err = buildWithDeployAgent(ctx, newJob)
err := buildWithDeployAgent(ctx, newJob)
if err != nil {
return err
}
Expand Down

0 comments on commit a900772

Please sign in to comment.