Skip to content

Commit 758099a

Browse files
committed
Remove final & operator so all nils -> 0.0
1 parent fc4998f commit 758099a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/models/listing.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def name
5353
end
5454

5555
def name_and_match_history
56-
"(#{type}-#{all_tags_to_s.upcase}#{" ***INEXHAUSTIBLE*** " if inexhaustible?}) #{person.match_history}. (#{person.name}#{" --- $" + person.monthly_donation_amount_max.to_s + "/mo left" if person.monthly_donation_amount_max&.to_f > 0.0})"
56+
"(#{type}-#{all_tags_to_s.upcase}#{" ***INEXHAUSTIBLE*** " if inexhaustible?}) #{
57+
person.match_history}. (#{person.name}#{" --- $" +
58+
person.monthly_donation_amount_max.to_s + "/mo left" if person&.monthly_donation_amount_max.to_f > 0.0})"
5759
end
5860

5961
def status

0 commit comments

Comments
 (0)