Skip to content

Commit

Permalink
whoopse
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Jun 18, 2024
1 parent 7f286f0 commit a912399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snow/engine/snowman/job/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewScheduler[T comparable]() *Scheduler[T] {
// allowed.
func (s *Scheduler[T]) Schedule(ctx context.Context, userJob Job[T], dependencies ...T) error {
numUnresolved := len(dependencies)
if len(dependencies) == 0 {
if numUnresolved == 0 {
return userJob.Execute(ctx, nil, nil)
}

Expand Down

0 comments on commit a912399

Please # to comment.