Remove unnecessary else branch
This matches the existing style in the rest of the file.
This commit is contained in:
parent
a26e3bf360
commit
9284fe123e
22
variable.c
22
variable.c
@ -271,19 +271,19 @@ rb_tmp_class_path(VALUE klass, bool *permanent, fallback_func fallback)
|
|||||||
if (!NIL_P(path)) {
|
if (!NIL_P(path)) {
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if (RB_TYPE_P(klass, T_MODULE)) {
|
if (RB_TYPE_P(klass, T_MODULE)) {
|
||||||
if (rb_obj_class(klass) == rb_cModule) {
|
if (rb_obj_class(klass) == rb_cModule) {
|
||||||
path = Qfalse;
|
path = Qfalse;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
bool perm;
|
bool perm;
|
||||||
path = rb_tmp_class_path(RBASIC(klass)->klass, &perm, fallback);
|
path = rb_tmp_class_path(RBASIC(klass)->klass, &perm, fallback);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*permanent = false;
|
|
||||||
return fallback(klass, path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*permanent = false;
|
||||||
|
return fallback(klass, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user