Commit 8578a300 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'pl-ambiguous-operator' into 'master'

Eliminate warnings about ambiguousness of operator

See merge request gitlab-org/gitlab!23074
parents 5493702e 79bdd0ae
......@@ -18,7 +18,7 @@ module Gitlab
:committed_date, :committer_name, :committer_email
].freeze
attr_accessor *SERIALIZE_KEYS # rubocop:disable Lint/AmbiguousOperator
attr_accessor(*SERIALIZE_KEYS)
def ==(other)
return false unless other.is_a?(Gitlab::Git::Commit)
......
......@@ -10,7 +10,7 @@ module Gitlab
MAX_TAG_MESSAGE_DISPLAY_SIZE = 10.megabytes
SERIALIZE_KEYS = %i[name target target_commit message].freeze
attr_accessor *SERIALIZE_KEYS # rubocop:disable Lint/AmbiguousOperator
attr_accessor(*SERIALIZE_KEYS)
class << self
def get_message(repository, tag_id)
......
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