Simplified code

This commit is contained in:
Andrew Murray 2024-07-15 20:48:39 +10:00
parent 6944e9e183
commit 76e5e12f98

View File

@ -1315,8 +1315,7 @@ font_getvaraxes(FontObject *self) {
FT_Done_MM_Var(library, master); FT_Done_MM_Var(library, master);
return NULL; return NULL;
} }
PyDict_SetItemString( PyDict_SetItemString(list_axis, "name", axis_name);
list_axis, "name", axis_name ? axis_name : Py_None);
Py_DECREF(axis_name); Py_DECREF(axis_name);
break; break;
} }