Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0810214d
Commit
0810214d
authored
Oct 20, 2020
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NoMethodError in ChunkedIO class
parent
7e2ff88b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/ci/trace/chunked_io.rb
lib/gitlab/ci/trace/chunked_io.rb
+2
-2
No files found.
lib/gitlab/ci/trace/chunked_io.rb
View file @
0810214d
...
@@ -75,7 +75,7 @@ module Gitlab
...
@@ -75,7 +75,7 @@ module Gitlab
until
length
<=
0
||
eof?
until
length
<=
0
||
eof?
data
=
chunk_slice_from_offset
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_bytes
=
[
CHUNK_SIZE
-
chunk_offset
,
length
].
min
chunk_data_slice
=
data
.
byteslice
(
0
,
chunk_bytes
)
chunk_data_slice
=
data
.
byteslice
(
0
,
chunk_bytes
)
...
@@ -100,7 +100,7 @@ module Gitlab
...
@@ -100,7 +100,7 @@ module Gitlab
until
eof?
until
eof?
data
=
chunk_slice_from_offset
data
=
chunk_slice_from_offset
raise
FailedToGetChunkError
if
data
.
empty?
raise
FailedToGetChunkError
if
data
.
to_s
.
empty?
new_line
=
data
.
index
(
"
\n
"
)
new_line
=
data
.
index
(
"
\n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment