From 6cc8eb4daadbbc0cf3b6be4bed48f7d5a476f557 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 22 Mar 2023 18:42:53 +0900 Subject: Should not reach end of non-void function --- file.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index acb5d64cbf..2c74f3eff5 100644 --- a/file.c +++ b/file.c @@ -5879,10 +5879,8 @@ rb_stat_wr(VALUE obj) if ((st->st_mode & (S_IROTH)) == S_IROTH) { return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO)); } - else { - return Qnil; - } #endif + return Qnil; } /* @@ -5972,10 +5970,8 @@ rb_stat_ww(VALUE obj) if ((st->st_mode & (S_IWOTH)) == S_IWOTH) { return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO)); } - else { - return Qnil; - } #endif + return Qnil; } /* -- cgit v1.2.1