Skip to content

Commit 045913c

Browse files
committed
redundant check
1 parent 21ab5dd commit 045913c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Python/compile.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,10 +1416,7 @@ _PyCompile_OptimizeAndAssemble(compiler *c, int addNone)
14161416
PyObject *filename = c->c_filename;
14171417

14181418
int code_flags = compute_code_flags(c);
1419-
if (code_flags < 0) {
1420-
return NULL;
1421-
}
1422-
1419+
assert(code_flags >= 0);
14231420
if (_PyCodegen_AddReturnAtEnd(c, addNone) < 0) {
14241421
return NULL;
14251422
}

0 commit comments

Comments
 (0)