This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

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?
end
def expire_etag_cache
return unless awardable.respond_to?(:expire_etag_cache)
awardable.expire_etag_cache
awardable.try(:expire_etag_cache)
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