Autofix Rubocop Style/RedundantBegin (#23703)
This commit is contained in:
@@ -18,13 +18,11 @@ class Api::V1::Trends::LinksController < Api::BaseController
|
||||
end
|
||||
|
||||
def set_links
|
||||
@links = begin
|
||||
if enabled?
|
||||
links_from_trends.offset(offset_param).limit(limit_param(DEFAULT_LINKS_LIMIT))
|
||||
else
|
||||
[]
|
||||
end
|
||||
end
|
||||
@links = if enabled?
|
||||
links_from_trends.offset(offset_param).limit(limit_param(DEFAULT_LINKS_LIMIT))
|
||||
else
|
||||
[]
|
||||
end
|
||||
end
|
||||
|
||||
def links_from_trends
|
||||
|
Reference in New Issue
Block a user