conditional checking was arse backwards

This commit is contained in:
Nigel Brookes-Thomas 2020-03-13 11:33:40 +00:00
parent 85c863deab
commit f8ee7b2e91
2 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ class Roda
shall_proxy = Random.rand(0.0..1.0) <= probability
if shall_proxy && ( condition.respond_to?(:call) ? condition.call : condition )
yield(self)
else
proxy
else
yield(self)
end
end

View File

@ -2,6 +2,6 @@
class Roda
module Proxy
VERSION = '1.0.0'
VERSION = '1.0.1'
end
end