Commit 2a2bc7c5 authored by Siddharth Asthana's avatar Siddharth Asthana

Fix Gitlab/DelegatePredicateMethods offenses

Changelog: other
parent 8f0ec8d2
......@@ -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
......@@ -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?
......
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