Commit e76788ac authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'fix/gb/trace-read-no-method-error' into 'master'

Fix NoMethodError in ChunkedIO class

See merge request gitlab-org/gitlab!45657
parents 070a788d 0810214d
......@@ -75,7 +75,7 @@ module Gitlab
until length <= 0 || eof?
data = chunk_slice_from_offset
raise FailedToGetChunkError if data.empty?
raise FailedToGetChunkError if data.to_s.empty?
chunk_bytes = [CHUNK_SIZE - chunk_offset, length].min
chunk_data_slice = data.byteslice(0, chunk_bytes)
......@@ -100,7 +100,7 @@ module Gitlab
until eof?
data = chunk_slice_from_offset
raise FailedToGetChunkError if data.empty?
raise FailedToGetChunkError if data.to_s.empty?
new_line = data.index("\n")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment