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
22f1d2a1
Commit
22f1d2a1
authored
May 18, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Append gurad clause. remove unless debris.empty
parent
72b0af2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/gitlab/ci/trace/stream.rb
lib/gitlab/ci/trace/stream.rb
+3
-1
No files found.
lib/gitlab/ci/trace/stream.rb
View file @
22f1d2a1
...
...
@@ -96,6 +96,8 @@ module Gitlab
end
def
reverse_line
return
if
stream
.
size
<=
0
pos
=
0
max
=
stream
.
size
debris
=
''
...
...
@@ -110,7 +112,7 @@ module Gitlab
end
end
yield
(
debris
)
unless
debris
.
empty?
yield
(
debris
)
end
def
calc_read_size
(
pos
,
max
)
...
...
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