Remove duplicated code

This commit is contained in:
Akinori MUSHA 2017-08-07 01:50:40 +09:00
parent 24880ef87f
commit 83a6fd091a

View file

@ -146,18 +146,6 @@ module FeedjiraExtension
def authors
_authors.reject(&:empty?)
end
def alternate_link
links.find { |link|
link.is_a?(AtomLink) &&
link.rel == 'alternate' &&
(link.type == 'text/html'|| link.type.nil?)
}
end
def url
@url ||= (alternate_link || links.first).try!(:href)
end
end
end
end