Skip to content

Commit

Permalink
Simplify function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Jan 5, 2015
1 parent 8d06901 commit 9b973a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/external_post.rb
Expand Up @@ -4,12 +4,13 @@ class ExternalPost

class << self
def get_service_icon(service)
if service == CONFIG["local_image_service"]
case service
when CONFIG["local_image_service"]
"/favicon.ico"
elsif service == "gelbooru.com" # hack
"/favicon-" + service + ".png"
when "gelbooru.com" # hack
"/favicon-#{service}.png"
else
"/favicon-" + service + ".ico"
"/favicon-#{service}.ico"
end
end
end
Expand Down

0 comments on commit 9b973a4

Please sign in to comment.