lib/html2rss/item.rb in html2rss-0.3.0 vs lib/html2rss/item.rb in html2rss-0.3.1
- old
+ new
@@ -36,12 +36,10 @@
@available_attributes ||= (%w[title link description author comments updated] &
@config.attribute_names) - ['categories']
end
def valid?
- return false if [title.to_s, description.to_s].join('') == ''
-
- true
+ [title.to_s, description.to_s].join('') != ''
end
def categories
config.categories.map(&method(:method_missing)).uniq.keep_if { |category| category.to_s != '' }
end