提交 39ae8398 编写于 作者: D Douwe Maan

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

上级 b7c1b05f
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册