提交 e5e44ba8 编写于 作者: A Ari Pollak

Use try instead of checking for GlobalID::Identification

上级 25c8ea26
......@@ -85,11 +85,7 @@ def queue_name(event)
end
def global_id_or_inspected(argument)
if argument.is_a?(GlobalID::Identification)
argument.to_global_id.to_s
else
argument.inspect
end
argument.try(:to_global_id).try(:to_s) || argument.inspect
end
def args_info(job)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册