diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:57:19 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:57:19 +0200 |
commit | f83801a9fe092334d5b325bbe4b736aa6b88007e (patch) | |
tree | 9303896a1835f3841e176943d63088bb7df29489 /support/go-format | |
parent | 8f9046aad854e4c861c3a016cc3dd69e137a5c27 (diff) | |
download | gitlab-shell-dz-update-deps.tar.gz |
Update files to pass modern rubocop checks. Disable some of themdz-update-deps
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'support/go-format')
-rwxr-xr-x | support/go-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/go-format b/support/go-format index d74fc46..b5f47b7 100755 --- a/support/go-format +++ b/support/go-format @@ -5,7 +5,7 @@ def main(check) cmd = %w[gofmt -s -l] cmd << '-w' unless check cmd += go_files - output = IO.popen(cmd, 'r') { |io| io.read } + output = IO.popen(cmd, 'r', &:read) $stdout.write(output) abort 'gofmt failed' unless $?.success? if check && output.lines.any? { |l| l != "\n" } |