Skip to content

Commit 1362242

Browse files
committed
lint
1 parent eae85a3 commit 1362242

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

source/module.c

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,11 @@ static int s_py_logger_log(
8585
return AWS_OP_ERR;
8686
}
8787

88-
PyObject *py_thread_name = thread_name_str ?
89-
PyUnicode_FromString(aws_string_c_str(thread_name_str))
90-
: Py_NewRef(Py_None);
88+
PyObject *py_thread_name =
89+
thread_name_str ? PyUnicode_FromString(aws_string_c_str(thread_name_str)) : Py_NewRef(Py_None);
9190

9291
PyObject *result = PyObject_CallFunction(
93-
impl->callback,
94-
"(is#iss)",
95-
(int)log_level,
96-
buf,
97-
(Py_ssize_t)len,
98-
(int)subject,
99-
subject_name,
100-
py_thread_name);
92+
impl->callback, "(is#iss)", (int)log_level, buf, (Py_ssize_t)len, (int)subject, subject_name, py_thread_name);
10193
Py_XDECREF(result);
10294
if (PyErr_Occurred()) {
10395
PyErr_WriteUnraisable(PyErr_Occurred());

0 commit comments

Comments
 (0)