mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
refine abf1b18 to remove nested if
This commit is contained in:
+3
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user