Skip to content

Commit

Permalink
Merge pull request rack#354 from benhamill/silence_constant_warning
Browse files Browse the repository at this point in the history
Only remove a constant if it exists.
  • Loading branch information
rkh committed Mar 7, 2012
2 parents 8c8e535 + a48eda5 commit 8d2cb75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/backports/uri/common_192.rb
Expand Up @@ -66,6 +66,6 @@ def self.decode_www_form_component(str, enc=Encoding::UTF_8)
str.gsub(/\+|%\h\h/, TBLDECWWWCOMP_).force_encoding(enc)
end

remove_const :WFKV_
remove_const :WFKV_ if const_defined?(:WFKV_)
WFKV_ = '(?:[^%#=;&]*(?:%\h\h[^%#=;&]*)*)' # :nodoc:
end

0 comments on commit 8d2cb75

Please sign in to comment.