Skip to content

Commit

Permalink
Rubocopo lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed May 28, 2019
1 parent e15eb12 commit 765d62e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/decidim/plans/test/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 765d62e

Please sign in to comment.