Skip to content

Commit 9dbbdcc

Browse files
nobumatzbot
authored andcommitted
[ruby/io-console] Remove useless rb_check_arity() call
ruby/io-console@df444b93f1
1 parent 71dd272 commit 9dbbdcc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/io/console/console.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,8 +1651,6 @@ console_dev(int argc, VALUE *argv, VALUE klass)
16511651
VALUE con = 0;
16521652
VALUE sym = 0;
16531653

1654-
rb_check_arity(argc, 0, UNLIMITED_ARGUMENTS);
1655-
16561654
if (argc) {
16571655
Check_Type(sym = argv[0], T_SYMBOL);
16581656
}

0 commit comments

Comments
 (0)