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
2a2bc7c5
Commit
2a2bc7c5
authored
Dec 04, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Gitlab/DelegatePredicateMethods offenses
Changelog: other
parent
8f0ec8d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
.rubocop_todo/gitlab/delegate_predicate_methods.yml
.rubocop_todo/gitlab/delegate_predicate_methods.yml
+0
-1
lib/gitlab/ci/trace/stream.rb
lib/gitlab/ci/trace/stream.rb
+1
-4
No files found.
.rubocop_todo/gitlab/delegate_predicate_methods.yml
View file @
2a2bc7c5
...
...
@@ -5,4 +5,3 @@ Gitlab/DelegatePredicateMethods:
-
app/models/concerns/integrations/base_data_fields.rb
-
app/models/project.rb
-
ee/app/models/concerns/ee/ci/metadatable.rb
-
lib/gitlab/ci/trace/stream.rb
lib/gitlab/ci/trace/stream.rb
View file @
2a2bc7c5
...
...
@@ -11,10 +11,6 @@ module Gitlab
delegate
:close
,
:tell
,
:seek
,
:size
,
:url
,
:truncate
,
to: :stream
,
allow_nil:
true
delegate
:valid?
,
to: :stream
,
allow_nil:
true
alias_method
:present?
,
:valid?
def
initialize
(
metrics
=
Trace
::
Metrics
.
new
)
@stream
=
yield
@stream
&
.
binmode
...
...
@@ -24,6 +20,7 @@ module Gitlab
def
valid?
self
.
stream
.
present?
end
alias_method
:present?
,
:valid?
def
file?
self
.
path
.
present?
...
...
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