lib/kosher/book.rb in kosher-0.2.17 vs lib/kosher/book.rb in kosher-0.2.18

- old
+ new

@@ -1,9 +1,9 @@ module Kosher class Book < Struct.new(:venue, :isbn, :asin, :sales_rank, :offers_total, :offers, :created_at) def best_kosher_offer offer = offers.sort.first - offer.kosher? ? offer : nil + (offer && offer.kosher?) ? offer : nil end end end