提交 edc0ffc3 编写于 作者: R Ryuta Kamizono

Fix `warning: assigned but unused variable - timestamp`

上级 c01ea3e5
......@@ -97,7 +97,7 @@ def cache_key(*timestamp_names)
# +false+ (which it is by default until Rails 6.0).
def cache_version
if cache_versioning && timestamp = try(:updated_at)
updated_at.utc.to_s(:usec)
timestamp.utc.to_s(:usec)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册