From ad05edb5ff2f78664cc09bc9854f1d2118485604 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 15 Mar 2022 21:38:40 +0100 Subject: [PATCH] Berry minor stylistic change --- lib/libesp32/berry/src/be_api.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libesp32/berry/src/be_api.c b/lib/libesp32/berry/src/be_api.c index c3fd59e23..79b41edc9 100644 --- a/lib/libesp32/berry/src/be_api.c +++ b/lib/libesp32/berry/src/be_api.c @@ -652,10 +652,7 @@ static int ins_member(bvm *vm, int index, const char *k, bbool onlyins) bmodule *module = var_toobj(o); type = be_module_attr(vm, module, be_newstr(vm, k), top); } - if (type == BE_NONE) { - type = BE_NIL; - } - return type; + return type == BE_NONE ? BE_NIL : type; } BERRY_API bbool be_getmember(bvm *vm, int index, const char *k)