Commit 39ae8398 authored by Douwe Maan's avatar Douwe Maan
Browse files

Use `try` instead of `repond_to?` and a method call

parent 134f7d25554c
...@@ -37,8 +37,6 @@ def upvote? ...@@ -37,8 +37,6 @@ def upvote?
end end
def expire_etag_cache def expire_etag_cache
return unless awardable.respond_to?(:expire_etag_cache) awardable.try(:expire_etag_cache)
end end
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