title: How does "Assignment Branch Condition size for index is too high" work?
body: <p>Rubocop is always report the error:</p>
  
  <blockquote>
    <p>app/controllers/account_controller.rb:5:3: C: Assignment Branch Condition size for index is too high. [30.95/24] </p>
  </blockquote>
  
  <pre><code>if params[:role]
    @users = @search.result.where(:role =&gt; params[:role])
  elsif params[:q] &amp;&amp; params[:q][:s].include?('count')
    @users = @search.result.order(params[:q][:s])
  else
    @users = @search.result
  end
  </code></pre>
  
  <p>How to fix it? Anyone has good idea?</p>