Skip to content

Commit f25d0ac

Browse files
committed
remote: Fix C89 style
1 parent 362ae46 commit f25d0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/rugged/rugged_remote.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,13 @@ static VALUE rb_git_remote_fetch(int argc, VALUE *argv, VALUE self)
576576
init_custom_headers(rb_options, &opts.custom_headers);
577577

578578
if (!NIL_P(rb_options)) {
579+
VALUE rb_prune_type;
579580
VALUE rb_val = rb_hash_aref(rb_options, CSTR2SYM("message"));
581+
580582
if (!NIL_P(rb_val))
581583
log_message = StringValueCStr(rb_val);
582584

583-
VALUE rb_prune_type = rb_hash_aref(rb_options, CSTR2SYM("prune"));
585+
rb_prune_type = rb_hash_aref(rb_options, CSTR2SYM("prune"));
584586
opts.prune = parse_prune_type(rb_prune_type);
585587
}
586588

0 commit comments

Comments
 (0)