Skip to content

Commit

Permalink
clean code in store.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vision9527 authored and wei.huang committed Apr 13, 2020
1 parent 5fb20ae commit f727cfa
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dkron/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ func (s *Store) SetJob(job *Job, copyDependentJobs bool) error {
if err := s.removeFromParent(ej); err != nil {
return err
}

if ej == nil || ej.ParentJob == "" {
// Need to handle this case already created parent job when dependent job is not exist
if err := s.removeFromParent(job); err != nil {
return err
}
}

if err := s.addToParent(job); err != nil {
return err
}
Expand Down

0 comments on commit f727cfa

Please sign in to comment.