From 765d62e87998820105af4aeba72a682b1183dc0c Mon Sep 17 00:00:00 2001 From: Antti Hukkanen Date: Tue, 28 May 2019 16:50:51 +0300 Subject: [PATCH] Rubocopo lint --- lib/decidim/plans/test/factories.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/decidim/plans/test/factories.rb b/lib/decidim/plans/test/factories.rb index 11adbd1a..3836d828 100644 --- a/lib/decidim/plans/test/factories.rb +++ b/lib/decidim/plans/test/factories.rb @@ -96,9 +96,7 @@ proposals = evaluator.plan_proposals || [create(:proposal, component: proposal_component)] plan.attached_proposals = proposals.map { |p| create(:attached_proposal, plan: plan, proposal: p) } end - if evaluator.tags && evaluator.tags.count > 0 - plan.update!(tags: evaluator.tags) - end + plan.update!(tags: evaluator.tags) if evaluator.tags && evaluator.tags.count.positive? end trait :published do