diff options
author | James Lopez <james@jameslopez.es> | 2016-02-17 12:42:59 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-17 12:42:59 +0300 |
commit | 5255a54df9778b107734a84acb85230d62d3cff7 (patch) | |
tree | 6979d5094735e08f63fb5bac3cbd84848ae8d8d3 /app/workers | |
parent | 20e79f714a4b98526d5eeffc82c0de89c8369c4e (diff) |
refactored some stuff based on MR feedback
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_receive.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb index 9e7934b84d8..14d7813412e 100644 --- a/app/workers/post_receive.rb +++ b/app/workers/post_receive.rb @@ -38,12 +38,7 @@ class PostReceive if Gitlab::Git.tag_ref?(ref) GitTagPushService.new.execute(project, @user, oldrev, newrev, ref) else - GitPushService.new(project, @user, - { - oldrev: oldrev, - newrev: newrev, - ref: ref - }).execute + GitPushService.new(project, @user, oldrev: oldrev, newrev: newrev, ref: ref).execute end end end |