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 ...@@ -138,11 +138,11 @@ class Service < ApplicationRecord
end end
def self.supported_event_actions def self.supported_event_actions
%w() %w[]
end end
def self.supported_events 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 end
def self.event_description(event) def self.event_description(event)
...@@ -285,7 +285,7 @@ class Service < ApplicationRecord ...@@ -285,7 +285,7 @@ class Service < ApplicationRecord
# #
# This list is used in `Service#as_json(only: json_fields)`. # This list is used in `Service#as_json(only: json_fields)`.
def json_fields def json_fields
%w(active) %w[active]
end end
def to_service_hash 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