From f312e330623ca5c58c06ca6e551627e3e37a0d06 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Sun, 5 Apr 2015 12:50:00 +0000 Subject: [PATCH] Refactor Condition.define_test --- lib/producer/core/condition.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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