Apply Style/RedundantReturn rubocop rule

We were already following this pattern most of the time.
This commit is contained in:
Javi Martín
2019-10-26 13:26:35 +02:00
parent ddb37f89ae
commit 8e3bfa0d72
8 changed files with 13 additions and 10 deletions

View File

@@ -243,7 +243,7 @@ class Proposal < ApplicationRecord
def self.proposals_orders(user)
orders = %w[hot_score confidence_score created_at relevance archival_date]
orders << "recommendations" if Setting["feature.user.recommendations_on_proposals"] && user&.recommended_proposals
return orders
orders
end
def skip_user_verification?