summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-11 12:29:54 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-11 12:29:54 +1100
commite49153fb98ade48395b80271093bd763e771b3da (patch)
treed827afc25548ffb7861acb0bf210712a0d1b0a0c /py/compile.c
parent7f0e563de3f02b26aa0ebf5dd62907d67b524a8e (diff)
py/compile: Remove unreachable code.
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c6
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];