Commit 36152edb authored by Victor Ilyukevich's avatar Victor Ilyukevich

removed extra `if @stats` check in presenter

parent 50db77b3
...@@ -23,12 +23,14 @@ module Pod ...@@ -23,12 +23,14 @@ module Pod
result << wrap_string(pod.summary) result << wrap_string(pod.summary)
result << detail('Homepage', pod.homepage) result << detail('Homepage', pod.homepage)
result << detail('Source', pod.source_url) result << detail('Source', pod.source_url)
result << detail('Authors', pod.authors) if @stats && pod.authors =~ /,/ if @stats
result << detail('Author', pod.authors) if @stats && pod.authors !~ /,/ result << detail('Authors', pod.authors) if pod.authors =~ /,/
result << detail('Platform', pod.platform) if @stats result << detail('Author', pod.authors) if pod.authors !~ /,/
result << detail('License', pod.license) if @stats result << detail('Platform', pod.platform)
result << detail('Watchers', pod.github_watchers) if @stats result << detail('License', pod.license)
result << detail('Forks', pod.github_forks) if @stats result << detail('Watchers', pod.github_watchers)
result << detail('Forks', pod.github_forks)
end
result << detail('Sub specs', pod.subspecs) result << detail('Sub specs', pod.subspecs)
result result
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment