Fixed: Warnings from static code analysis
This commit is contained in:
parent
ff671366cb
commit
f43cb6e79d
1 changed files with 3 additions and 5 deletions
|
@ -397,13 +397,11 @@ module API
|
|||
end
|
||||
# rubocop: enable CodeReuse/ActiveRecord
|
||||
|
||||
# rubocop: disable CodeReuse/ActiveRecord
|
||||
def order_options_with_tie_breaker
|
||||
{params[:order_by] => params[:sort]}.tap do |order|
|
||||
order['id'] ||= 'desc'
|
||||
order_options = { params[:order_by] => params[:sort] }
|
||||
order_options['id'] ||= 'desc'
|
||||
order_options
|
||||
end
|
||||
end
|
||||
# rubocop: enable CodeReuse/ActiveRecord
|
||||
|
||||
def project_finder_params
|
||||
finder_params = { without_deleted: true }
|
||||
|
|
Loading…
Reference in a new issue