From b3a4461df2c78b4828cf344789b80e3c3ebedd14 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 14 Aug 2012 06:52:41 +0000 Subject: Suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 5b01866e8e..e077c6d523 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -788,7 +788,7 @@ class CGI # cookies and other parameters are parsed automatically from the standard # CGI locations, which varies according to the REQUEST_METHOD. def initialize(options = {}, &block) # :yields: name, value - @accept_charset_error_block=block if block_given? + @accept_charset_error_block = block_given? ? block : nil @options={:accept_charset=>@@accept_charset} case options when Hash -- cgit v1.2.3