Commit 79bdd0ae authored by Peter Leitzen's avatar Peter Leitzen

Eliminate warnings about ambiguousness of operator

This commit removes the following Ruby warning:
    warning: `*' interpreted as argument

Enforce Lint/AmbiguousOperator again.
parent ff441549
......@@ -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