diff --git a/lib/producer/core/condition.rb b/lib/producer/core/condition.rb index fc40404..146850c 100644 --- a/lib/producer/core/condition.rb +++ b/lib/producer/core/condition.rb @@ -14,8 +14,7 @@ module Producer else klass = test end - t = klass.new(@env, *args, negated: negated) - @tests << t + @tests << klass.new(@env, *args, negated: negated) end end end