diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-02 18:44:28 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-02 18:44:28 -0800 |
commit | b93ea982d41e82b247c3e89cec1622dbb517cfdb (patch) | |
tree | 4f377ff24d4ba3549206c39e35f38bce9fa4896b /lib/gitlab_custom_hook.rb | |
parent | 76524ecf621048dce84465df57785749b0a53968 (diff) | |
download | gitlab-shell-b93ea982d41e82b247c3e89cec1622dbb517cfdb.tar.gz |
Enable rubocop rule
Diffstat (limited to 'lib/gitlab_custom_hook.rb')
-rw-r--r-- | lib/gitlab_custom_hook.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_custom_hook.rb b/lib/gitlab_custom_hook.rb index 5533aa8..a099e79 100644 --- a/lib/gitlab_custom_hook.rb +++ b/lib/gitlab_custom_hook.rb @@ -33,7 +33,7 @@ class GitlabCustomHook # we combine both stdout and stderr as we don't know what stream # will be used by the custom hook - Open3.popen2e (hook) do |stdin, stdout_stderr, wait_thr| + Open3.popen2e(hook) do |stdin, stdout_stderr, wait_thr| exit_status = true stdin.sync = true @@ -43,7 +43,7 @@ class GitlabCustomHook begin # inject all the changes as stdin to the hook changes.lines do |line| - stdin.puts (line) + stdin.puts(line) end rescue Errno::EPIPE end |