mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove unused variable
This commit is contained in:
parent
c71934f8a5
commit
ed5c09f384
Notes:
git
2020-12-19 00:04:54 +09:00
1 changed files with 1 additions and 2 deletions
|
@ -2075,12 +2075,11 @@ check_exec_redirect1(VALUE ary, VALUE key, VALUE param)
|
|||
rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param)));
|
||||
}
|
||||
else {
|
||||
int i, n=0;
|
||||
int i;
|
||||
for (i = 0 ; i < RARRAY_LEN(key); i++) {
|
||||
VALUE v = RARRAY_AREF(key, i);
|
||||
VALUE fd = check_exec_redirect_fd(v, !NIL_P(param));
|
||||
rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param)));
|
||||
n++;
|
||||
}
|
||||
}
|
||||
return ary;
|
||||
|
|
Loading…
Add table
Reference in a new issue