diff options
| author | Damien George | 2016-10-11 12:29:54 +1100 |
|---|---|---|
| committer | Damien George | 2016-10-11 12:29:54 +1100 |
| commit | e49153fb98ade48395b80271093bd763e771b3da (patch) | |
| tree | d827afc25548ffb7861acb0bf210712a0d1b0a0c | |
| parent | 7f0e563de3f02b26aa0ebf5dd62907d67b524a8e (diff) | |
py/compile: Remove unreachable code.
| -rw-r--r-- | py/compile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/py/compile.c b/py/compile.c index 0ea8a3c15..de75bcdc3 100644 --- a/py/compile.c +++ b/py/compile.c @@ -2836,12 +2836,10 @@ STATIC void compile_scope_func_annotations(compiler_t *comp, mp_parse_node_t pn) // no annotation return; } - } else if (MP_PARSE_NODE_STRUCT_KIND(pns) == PN_typedargslist_dbl_star) { + } else { + assert(MP_PARSE_NODE_STRUCT_KIND(pns) == PN_typedargslist_dbl_star); // double star with possible annotation // fallthrough - } else { - // no annotation - return; } mp_parse_node_t pn_annotation = pns->nodes[1]; |
