Remove unnecessary else branch

This matches the existing style in the rest of the file.
This commit is contained in:
Xavier Noria 2024-03-09 13:59:24 +01:00 committed by Nobuyoshi Nakada
parent a26e3bf360
commit 9284fe123e

View File

@ -271,19 +271,19 @@ rb_tmp_class_path(VALUE klass, bool *permanent, fallback_func fallback)
if (!NIL_P(path)) {
return path;
}
else {
if (RB_TYPE_P(klass, T_MODULE)) {
if (rb_obj_class(klass) == rb_cModule) {
path = Qfalse;
}
else {
bool perm;
path = rb_tmp_class_path(RBASIC(klass)->klass, &perm, fallback);
}
if (RB_TYPE_P(klass, T_MODULE)) {
if (rb_obj_class(klass) == rb_cModule) {
path = Qfalse;
}
else {
bool perm;
path = rb_tmp_class_path(RBASIC(klass)->klass, &perm, fallback);
}
*permanent = false;
return fallback(klass, path);
}
*permanent = false;
return fallback(klass, path);
}
VALUE