mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dir.c (dir_initialize): remove useless intermediate variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1dc85e237
commit
125b4b7020
2 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Oct 21 23:47:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (dir_initialize): remove useless intermediate variable.
|
||||
|
||||
Thu Oct 21 16:07:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* io.c (rb_f_select): change rdoc.
|
||||
|
|
6
dir.c
6
dir.c
|
@ -395,11 +395,7 @@ dir_initialize(int argc, VALUE *argv, VALUE dir)
|
|||
argc = rb_scan_args(argc, argv, "1:", &dirname, &opt);
|
||||
|
||||
if (!NIL_P(opt)) {
|
||||
VALUE v, enc=Qnil;
|
||||
|
||||
v = rb_hash_aref(opt, sym_enc);
|
||||
if (!NIL_P(v)) enc = v;
|
||||
|
||||
VALUE enc = rb_hash_aref(opt, sym_enc);
|
||||
if (!NIL_P(enc)) {
|
||||
fsenc = rb_to_encoding(enc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue