Permalink
Browse files

refine abf1b18 to remove nested if

  • Loading branch information...
1 parent 5f2e9e4 commit 3f85079cc045012285ce432b446b77eab82de7fe @matz matz committed Mar 16, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 test/driver.c
View
@@ -69,11 +69,9 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
- if (argc == 2 && argv[1][0] == '-') {
- if (argv[1][1] == 'v') {
- printf("verbose mode: enable\n\n");
- mrb_gv_set(mrb, mrb_intern(mrb, "$mrbtest_verbose"), mrb_true_value());
- }
+ if (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v') {
+ printf("verbose mode: enable\n\n");
+ mrb_gv_set(mrb, mrb_intern(mrb, "$mrbtest_verbose"), mrb_true_value());
}
mrb_init_mrbtest(mrb);

0 comments on commit 3f85079

Please sign in to comment.