提交 17566298 编写于 作者: R Rahul P. Chaudhari

Use any instead of length

上级 3c81fc3b
......@@ -1239,7 +1239,7 @@ def extract_pg_identifier_from_name(name)
if match_data
rest = name[match_data[0].length, name.length]
rest = rest[1, rest.length] if rest.start_with? "."
[match_data[1], (rest.length > 0 ? rest : nil)]
[match_data[1], (rest.any? ? rest : nil)]
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册