Skip to content
Snippets Groups Projects
Commit 39ae8398 authored by Douwe Maan's avatar Douwe Maan
Browse files

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

parent b7c1b05f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -37,8 +37,6 @@ class AwardEmoji < ActiveRecord::Base
end
 
def expire_etag_cache
return unless awardable.respond_to?(:expire_etag_cache)
awardable.expire_etag_cache
awardable.try(:expire_etag_cache)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment