Skip to content

Commit

Permalink
Remove superfluous braces
Browse files Browse the repository at this point in the history
  • Loading branch information
oremanj committed Nov 14, 2024
1 parent dcb77ac commit 604ca48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nb_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,8 @@ PyObject *nb_func_new(const void *in_) noexcept {
noargs_ok = false;
break;
}
if (noargs_ok) {
if (noargs_ok)
td->flags |= (uint32_t) type_flags::has_nullary_new;
}
}
} else if (is_new) {
td->init = func;
Expand Down

0 comments on commit 604ca48

Please sign in to comment.