Skip to content

Commit 6c6bd71

Browse files
style: pre-commit fixes
1 parent 25485b3 commit 6c6bd71

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

include/pybind11/cast.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,8 +2490,7 @@ class unpacking_vectorcall_collector {
24902490
throw cast_error_unable_to_convert_call_arg(a.name, a.type);
24912491
# endif
24922492
}
2493-
if (PyList_Append(names_list.ptr(), name.release().ptr()) < 0)
2494-
{
2493+
if (PyList_Append(names_list.ptr(), name.release().ptr()) < 0) {
24952494
throw error_already_set();
24962495
}
24972496
m_temp.push_back(a.value); // keep alive
@@ -2515,8 +2514,7 @@ class unpacking_vectorcall_collector {
25152514
multiple_values_error(name);
25162515
# endif
25172516
}
2518-
if (PyList_Append(names_list.ptr(), name.release().ptr()) < 0)
2519-
{
2517+
if (PyList_Append(names_list.ptr(), name.release().ptr()) < 0) {
25202518
throw error_already_set();
25212519
}
25222520
m_temp.push_back(reinterpret_borrow<object>(k.second)); // keep alive

0 commit comments

Comments
 (0)