Skip to content

Commit df444b9

Browse files
committed
Remove useless rb_check_arity() call
1 parent 78858b0 commit df444b9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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)