summaryrefslogtreecommitdiff
path: root/support/go-format
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-22 18:57:19 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-22 18:57:19 +0200
commitf83801a9fe092334d5b325bbe4b736aa6b88007e (patch)
tree9303896a1835f3841e176943d63088bb7df29489 /support/go-format
parent8f9046aad854e4c861c3a016cc3dd69e137a5c27 (diff)
downloadgitlab-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-xsupport/go-format2
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" }