From 604ca485c35d90215d6d8dee6ee2a33e7a494eb0 Mon Sep 17 00:00:00 2001 From: Joshua Oreman Date: Thu, 14 Nov 2024 09:50:35 +0800 Subject: [PATCH] Remove superfluous braces --- src/nb_func.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nb_func.cpp b/src/nb_func.cpp index c7f87a64..69162f59 100644 --- a/src/nb_func.cpp +++ b/src/nb_func.cpp @@ -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;