remove superfluous length call

pull/3338/head
Jan Sandbrink 9 years ago
parent 91426a87bf
commit 1cf3d1c8ee
  1. 2
      app/models/query.rb

@ -195,7 +195,7 @@ class Query < ActiveRecord::Base
WorkPackageCustomField.all
).map { |cf| ::QueryCustomFieldColumn.new(cf) }
if WorkPackage.done_ratio_disabled?
@available_columns.select! { |column| column.name != :done_ratio }.length
@available_columns.select! { |column| column.name != :done_ratio }
end
@available_columns
end

Loading…
Cancel
Save