clang-tidy fix

This commit is contained in:
Wenzel Jakob 2022-11-02 23:17:46 +01:00
parent 39c21a36e4
commit 78e074b8bb

View File

@ -411,8 +411,9 @@ inline object get_internals_state_dict() {
# else # else
PyInterpreterState *istate = PyInterpreterState_Get(); PyInterpreterState *istate = PyInterpreterState_Get();
# endif # endif
if (istate) if (istate) {
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate)); state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
}
#endif #endif
if (!state_dict) { if (!state_dict) {
raise_from(PyExc_SystemError, "get_internals(): could not acquire state dictionary!"); raise_from(PyExc_SystemError, "get_internals(): could not acquire state dictionary!");