зеркало из https://github.com/github/ruby.git
Add a missing ||.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f8c8a38d30
Коммит
b54b4b79ec
|
@ -1,3 +1,7 @@
|
|||
Thu Dec 19 04:21:10 2002 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/open-uri.rb: add a missing ||. (found by: ruby -wc)
|
||||
|
||||
Wed Dec 18 03:52:55 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* string.c (rb_str_new4): handle tail shared string.
|
||||
|
|
|
@ -82,7 +82,7 @@ module OpenURI
|
|||
end
|
||||
|
||||
unless mode == nil ||
|
||||
mode == 'r' || mode == 'rb'
|
||||
mode == 'r' || mode == 'rb' ||
|
||||
mode == O_RDONLY
|
||||
raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)")
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче