summaryrefslogtreecommitdiff
path: root/support/go-format
diff options
context:
space:
mode:
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" }