Skip to content
代码片段 群组 项目
提交 3fcb9c11 编辑于 作者: Douwe Maan's avatar Douwe Maan
浏览文件

Merge branch 'zj-fix-index-rails' into 'master'

Use Ruby methods, not Rails' String#first

See merge request gitlab-org/gitlab-ce!18669
No related branches found
No related tags found
无相关合并请求
......@@ -38,7 +38,9 @@ def extract_paths(file_path)
end
def extract_operation
case @raw_operation&.first(1)
return :unknown unless @raw_operation
case @raw_operation[0]
when 'A'
:added
when 'C'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册