Commit 8f03f0f9 authored by Arturo Herrero's avatar Arturo Herrero

Use the braces for array literals

[] for array literals (%w, %i, %W, %I) as it is aligned with the
standard array literals.
https://github.com/rubocop-hq/ruby-style-guide#percent-literal-braces
parent d016b26b
......@@ -138,11 +138,11 @@ class Service < ApplicationRecord
end
def self.supported_event_actions
%w()
%w[]
end
def self.supported_events
%w(commit push tag_push issue confidential_issue merge_request wiki_page)
%w[commit push tag_push issue confidential_issue merge_request wiki_page]
end
def self.event_description(event)
......@@ -285,7 +285,7 @@ class Service < ApplicationRecord
#
# This list is used in `Service#as_json(only: json_fields)`.
def json_fields
%w(active)
%w[active]
end
def to_service_hash
......
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