Skip to content

Commit

Permalink
refine abf1b18 to remove nested if
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 16, 2013
1 parent 5f2e9e4 commit 3f85079
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/driver.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ main(int argc, char **argv)
return EXIT_FAILURE; return EXIT_FAILURE;
} }


if (argc == 2 && argv[1][0] == '-') { if (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v') {
if (argv[1][1] == 'v') { printf("verbose mode: enable\n\n");
printf("verbose mode: enable\n\n"); mrb_gv_set(mrb, mrb_intern(mrb, "$mrbtest_verbose"), mrb_true_value());
mrb_gv_set(mrb, mrb_intern(mrb, "$mrbtest_verbose"), mrb_true_value());
}
} }


mrb_init_mrbtest(mrb); mrb_init_mrbtest(mrb);
Expand Down

0 comments on commit 3f85079

Please sign in to comment.