Commit e27aa43d authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'blackst0ne-rails5-fix-gitlab-ci-trace-stream-delegate-valid' into 'master'

[Rails5] Remove `as` keyword from `Gitlab:Ci:Trace:Stream.delegate :valid?`

See merge request gitlab-org/gitlab-ce!18270
parents 9a5765bf 18c2b062
...@@ -10,7 +10,9 @@ module Gitlab ...@@ -10,7 +10,9 @@ module Gitlab
delegate :close, :tell, :seek, :size, :url, :truncate, to: :stream, allow_nil: true delegate :close, :tell, :seek, :size, :url, :truncate, to: :stream, allow_nil: true
delegate :valid?, to: :stream, as: :present?, allow_nil: true delegate :valid?, to: :stream, allow_nil: true
alias_method :present?, :valid?
def initialize def initialize
@stream = yield @stream = yield
......
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