Merge pull request #15150 from s-hadinger/berry_sync_2

Berry minor stylistic change
This commit is contained in:
s-hadinger 2022-03-15 21:39:28 +01:00 committed by GitHub
commit 4f54753739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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)