summaryrefslogtreecommitdiff
path: root/lib/declarative_policy/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/declarative_policy/runner.rb')
-rw-r--r--lib/declarative_policy/runner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/declarative_policy/runner.rb b/lib/declarative_policy/runner.rb
index 77c91817382..87f14b3b0d2 100644
--- a/lib/declarative_policy/runner.rb
+++ b/lib/declarative_policy/runner.rb
@@ -77,7 +77,7 @@ module DeclarativePolicy
@state = State.new
steps_by_score do |step, score|
- return if !debug && @state.prevented?
+ break if !debug && @state.prevented?
passed = nil
case step.action