Use keyword arg, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019/diffs#note_15336212
This commit is contained in:
parent
1b8bbe5cd0
commit
844d4e24af
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class PipelinesEmailService < Service
|
|||
%w[pipeline]
|
||||
end
|
||||
|
||||
def execute(data, force = false)
|
||||
def execute(data, force: false)
|
||||
return unless supported_events.include?(data[:object_kind])
|
||||
return unless force || should_pipeline_be_notified?(data)
|
||||
|
||||
|
@ -66,7 +66,7 @@ class PipelinesEmailService < Service
|
|||
end
|
||||
|
||||
def test(data)
|
||||
result = execute(data, true)
|
||||
result = execute(data, force: true)
|
||||
|
||||
{ success: true, result: result }
|
||||
rescue StandardError => error
|
||||
|
|
Loading…
Reference in a new issue