From 8a25c424a4c69f8f9c5807bd09d819f0ff307664 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 27 Nov 2024 15:11:09 +0900 Subject: [PATCH] dump.c: remove unnecessary braces around `return` --- src/dump.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/dump.c b/src/dump.c index f4e1e6212..930d97c4e 100644 --- a/src/dump.c +++ b/src/dump.c @@ -409,7 +409,7 @@ static int find_filename_index(const mrb_sym *ary, int ary_len, mrb_sym s) { for (int i = 0; i < ary_len; i++) { - if (ary[i] == s) { return i; } + if (ary[i] == s) return i; } return -1; } @@ -712,10 +712,9 @@ debug_info_defined_p(const mrb_irep *irep) static mrb_bool lv_defined_p(const mrb_irep *irep) { - if (irep->lv) { return TRUE; } - + if (irep->lv) return TRUE; for (int i = 0; i < irep->rlen; i++) { - if (lv_defined_p(irep->reps[i])) { return TRUE; } + if (lv_defined_p(irep->reps[i])) return TRUE; } return FALSE;