Skip to content

Not follow the flow after a loop #12

Description

@gmgp

Hi and tanks for the work

if project.blocked?  
  problems.each do |i| 
    eat(:donuts)
    solve(i)
  end
else
  sleep
end

puts 'ok'

the result is

graph

the same without the if

problems.each{|i| 
  eat(:donuts)
  solve(i)
}
puts 'ok'

graph (1)

with some hint i can try to make a PR

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions