Skip to content

Commit 501f69d

Browse files
author
Andy Delcambre
committed
Declaration before statements
1 parent 8a765f8 commit 501f69d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/rugged/rugged_tree.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ static int rugged__treecount_cb(const char *root, const git_tree_entry *entry, v
127127
static VALUE rb_git_tree_entrycount_recursive(int argc, VALUE* argv, VALUE self)
128128
{
129129
git_tree *tree;
130-
Data_Get_Struct(self, git_tree, tree);
131130
int error;
132131
struct rugged_treecount_cb_payload payload;
133132
VALUE rb_limit;
134133

134+
Data_Get_Struct(self, git_tree, tree);
135+
135136
rb_scan_args(argc, argv, "01", &rb_limit);
136137

137138
payload.limit = -1;

0 commit comments

Comments
 (0)