-
Lior Sion authored
cards_or_sources[:total_count] || 0 + 1 -> if cards_or_sources[:total_count] == 0 return 0 else return 0 + 1 # return 1 end I believe the meaning was: if cards_or_sources[:total_count] == 0 || cards_or_sources[:total_count].nil? return 1 else return cards_or_sources[:total_count] + 1 end
91e52cef