mruby-bin-mruby: remove unnecessary condition

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-01-14 23:00:43 +09:00
parent 4f8fd23f7a
commit 90fac46751
+2 -2
View File
@@ -98,8 +98,8 @@ options_opt(struct options *opts)
while (++opts->argv, --opts->argc) {
opts->opt = *opts->argv;
/* empty || not start with `-` || `-` */
if (!opts->opt[0] || opts->opt[0] != '-' || !opts->opt[1]) return NULL;
/* not start with `-` || `-` */
if (opts->opt[0] != '-' || !opts->opt[1]) return NULL;
if (opts->opt[1] == '-') {
/* `--` */