Skip to content
代码片段 群组 项目
未验证 提交 ded439a4 编辑于 作者: Terri Chu's avatar Terri Chu 提交者: GitLab
浏览文件

Merge branch 'minac_do_not_check_first_line_for_each_line' into 'master'

Do not check skip condition for each CSV line

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/157912



Merged-by: default avatarTerri Chu <tchu@gitlab.com>
Approved-by: default avatarMarc Saleiko <msaleiko@gitlab.com>
Approved-by: default avatarTerri Chu <tchu@gitlab.com>
Reviewed-by: default avatarMarc Saleiko <msaleiko@gitlab.com>
Co-authored-by: default avatarMehmet Emin INAC <minac@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -66,13 +66,9 @@ def finalise_segmented_export ...@@ -66,13 +66,9 @@ def finalise_segmented_export
vulnerability_export.export_parts.each do |part| vulnerability_export.export_parts.each do |part|
part.file.open do |stream| part.file.open do |stream|
first_skip = export_header.present? stream.readline if export_header.present? # Moves the cursor to next line
stream.each_line do |line|
if first_skip
first_skip = false
next
end
stream.each_line do |line|
# The encoding of the parts is read as ASCI-8BIT. # The encoding of the parts is read as ASCI-8BIT.
# We need to force the encoding to utf-8 to avoid a write failure due to # We need to force the encoding to utf-8 to avoid a write failure due to
# wide-chars used in place like group names. # wide-chars used in place like group names.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册