Skip to content

Commit 575a884

Browse files
committed
Clean up style a bit
1 parent 07be4dc commit 575a884

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/src/ujson/python/objToJSON.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,14 +1446,7 @@ void Object_beginTypeContext (JSOBJ _obj, JSONTypeContext *tc)
14461446

14471447
PRINTMARK();
14481448
pc->PyTypeToJSON = NpyDateTimeToJSON;
1449-
if (enc->datetimeIso)
1450-
{
1451-
tc->type = JT_UTF8;
1452-
}
1453-
else
1454-
{
1455-
tc->type = JT_LONG;
1456-
}
1449+
tc->type = enc->datetimeIso ? JT_UTF8 : JT_LONG;
14571450
return;
14581451
}
14591452
else

0 commit comments

Comments
 (0)