mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-21 20:55:11 +00:00
clang-tidy fix
This commit is contained in:
parent
39c21a36e4
commit
78e074b8bb
@ -411,8 +411,9 @@ inline object get_internals_state_dict() {
|
||||
# else
|
||||
PyInterpreterState *istate = PyInterpreterState_Get();
|
||||
# endif
|
||||
if (istate)
|
||||
if (istate) {
|
||||
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
|
||||
}
|
||||
#endif
|
||||
if (!state_dict) {
|
||||
raise_from(PyExc_SystemError, "get_internals(): could not acquire state dictionary!");
|
||||
|
Loading…
Reference in New Issue
Block a user