lib/danger/commands/init_helpers/interviewer.rb in danger-0.10.1 vs lib/danger/commands/init_helpers/interviewer.rb in danger-2.0.0
- old
+ new
@@ -70,10 +70,10 @@
def ask_with_answers(question, possible_answers)
ui.print "\n#{question}? ["
print_info = proc do
possible_answers.each_with_index do |answer, i|
- the_answer = (i == 0) ? answer.underline : answer
+ the_answer = i.zero? ? answer.underline : answer
ui.print " " + the_answer
ui.print(" /") if i != possible_answers.length - 1
end
ui.print " ]\n"
end