From 2caf7b76bb3e09ffabf8c56d3934ba8190673fdc Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 19 Apr 2016 15:06:06 +0800 Subject: man: fix Ruby syntax warning Library/Homebrew/cmd/man.rb:44: warning: assigned but unused variable - commands --- Library/Homebrew/cmd/man.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/man.rb b/Library/Homebrew/cmd/man.rb index 164eca9b1..fd959cd53 100644 --- a/Library/Homebrew/cmd/man.rb +++ b/Library/Homebrew/cmd/man.rb @@ -41,7 +41,7 @@ module Homebrew def build_man_page template = (SOURCE_PATH/"brew.1.md.erb").read - commands = Pathname.glob("#{HOMEBREW_LIBRARY_PATH}/cmd/*.{rb,sh}"). + Pathname.glob("#{HOMEBREW_LIBRARY_PATH}/cmd/*.{rb,sh}"). sort_by { |source_file| source_file.basename.sub(/\.(rb|sh)$/, "") }. map { |source_file| source_file.read.lines. -- cgit v1.2.3