提交 a39344e7 编辑于 作者: Jonathan Chang's avatar Jonathan Chang
浏览文件

tap: read_formula_list JSON file can be an array

上级 ed73d5b6
......@@ -632,7 +632,7 @@ class Tap
end
end
sig { params(file: Pathname).returns(Hash) }
sig { params(file: Pathname).returns(T.any(T::Array[String], Hash)) }
def read_formula_list(file)
JSON.parse file.read
rescue JSON::ParserError
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册