kopia lustrzana https://github.com/micropython/micropython
py/compile: Remove unreachable code.
rodzic
7f0e563de3
commit
e49153fb98
|
@ -2836,12 +2836,10 @@ STATIC void compile_scope_func_annotations(compiler_t *comp, mp_parse_node_t pn)
|
||||||
// no annotation
|
// no annotation
|
||||||
return;
|
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
|
// double star with possible annotation
|
||||||
// fallthrough
|
// fallthrough
|
||||||
} else {
|
|
||||||
// no annotation
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mp_parse_node_t pn_annotation = pns->nodes[1];
|
mp_parse_node_t pn_annotation = pns->nodes[1];
|
||||||
|
|
Ładowanie…
Reference in New Issue