Skip to content

Commit

Permalink
Merge pull request #8235 from radarhere/axis_name
Browse files Browse the repository at this point in the history
Simplified code
  • Loading branch information
hugovk authored Jul 15, 2024
2 parents 6944e9e + 76e5e12 commit 2152a17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,7 @@ font_getvaraxes(FontObject *self) {
FT_Done_MM_Var(library, master);
return NULL;
}
PyDict_SetItemString(
list_axis, "name", axis_name ? axis_name : Py_None);
PyDict_SetItemString(list_axis, "name", axis_name);
Py_DECREF(axis_name);
break;
}
Expand Down

0 comments on commit 2152a17

Please sign in to comment.