Skip to content

Commit 2e7bb29

Browse files
authored
remove redundant code
1 parent 75f600f commit 2e7bb29

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Objects/typeobject.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -5283,9 +5283,8 @@ get_base_by_token_recursive(PyObject *bases, void *token)
52835283
res = base;
52845284
break;
52855285
}
5286-
base = get_base_by_token_recursive(lookup_tp_bases(base), token);
5287-
if (base != NULL) {
5288-
res = base;
5286+
res = get_base_by_token_recursive(lookup_tp_bases(base), token);
5287+
if (res != NULL) {
52895288
break;
52905289
}
52915290
}

0 commit comments

Comments
 (0)