mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Remove duplicated code
This commit is contained in:
parent
24880ef87f
commit
83a6fd091a
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue