lib/inch/cli/command/output/suggest.rb in inch-0.3.1.rc3 vs lib/inch/cli/command/output/suggest.rb in inch-0.3.1.rc4
- old
+ new
@@ -101,12 +101,12 @@
def min_priority_arrows
priority_arrows_gte(@options.object_min_priority).join(' ')
end
def priority_arrows_gte(min_priority)
- Evaluation::PriorityRange.all.map do |range, str|
- str if range.min >= min_priority
- end.compact
+ Evaluation::PriorityRange.all.select do |priority_range|
+ priority_range.priorities.min >= min_priority
+ end
end
def grade_list(grade_symbol)
@grade_lists.detect { |r| r.grade.to_sym == grade_symbol }
end