Skip to content

Commit 2152a17

Browse files
authored
Merge pull request #8235 from radarhere/axis_name
Simplified code
2 parents 6944e9e + 76e5e12 commit 2152a17

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_imagingft.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,8 +1315,7 @@ font_getvaraxes(FontObject *self) {
13151315
FT_Done_MM_Var(library, master);
13161316
return NULL;
13171317
}
1318-
PyDict_SetItemString(
1319-
list_axis, "name", axis_name ? axis_name : Py_None);
1318+
PyDict_SetItemString(list_axis, "name", axis_name);
13201319
Py_DECREF(axis_name);
13211320
break;
13221321
}

0 commit comments

Comments
 (0)