1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

webrick/server: use symbol proc

Symbol proc is less code and avoids confusion from variable
naming.

* lib/webrick/server.rb (shutdown): use symbol proc

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2016-11-23 23:14:15 +00:00
parent d7f6ef94d3
commit 376e57fee1

View file

@ -232,7 +232,7 @@ module WEBrick
def shutdown
stop
alarm_shutdown_pipe {|f| f.close}
alarm_shutdown_pipe(&:close)
end
##