Skip to content

Commit 9d247e1

Browse files
Erlend Egeberg Aaslandcorona10
Erlend Egeberg Aasland
andauthored
Simplify converter
Co-authored-by: Dong-hee Na <[email protected]>
1 parent c1f8b43 commit 9d247e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_sqlite/connection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ clinic_fsconverter(PyObject *pathlike, const char **result)
4343
if (!PyUnicode_FSConverter(pathlike, &bytes)) {
4444
goto error;
4545
}
46-
else if (PyBytes_AsStringAndSize(bytes, &str, &len) < 0) {
46+
if (PyBytes_AsStringAndSize(bytes, &str, &len) < 0) {
4747
goto error;
4848
}
49-
else if ((*result = (const char *)PyMem_Malloc(len+1)) == NULL) {
49+
if ((*result = (const char *)PyMem_Malloc(len+1)) == NULL) {
5050
goto error;
5151
}
5252

0 commit comments

Comments
 (0)