py/compile: Remove unreachable code.

pull/2494/merge
Damien George 2016-10-11 12:29:54 +11:00
rodzic 7f0e563de3
commit e49153fb98
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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];