mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
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:
parent
f8c8a38d30
commit
b54b4b79ec
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue