Skip to content

Commit c31d47d

Browse files
author
Andy Delcambre
committed
No need to default to nil with rb_scan_args
1 parent 272d487 commit c31d47d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/rugged/rugged_tree.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ static VALUE rb_git_tree_entrycount_recursive(int argc, VALUE* argv, VALUE self)
126126
struct rugged_treecount_cb_payload payload;
127127
VALUE rb_limit;
128128

129-
if (rb_scan_args(argc, argv, "01", &rb_limit) == 0)
130-
rb_limit = Qnil;
129+
rb_scan_args(argc, argv, "01", &rb_limit);
131130

132131
payload.limit = -1;
133132
payload.count = 0;

0 commit comments

Comments
 (0)