Kaydet (Commit) 943a6ddc authored tarafından Benjamin Peterson's avatar Benjamin Peterson

simplify code

üst 596d3069
......@@ -6632,10 +6632,8 @@ posix_ftruncate(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS
res = ftruncate(fd, length);
Py_END_ALLOW_THREADS
if (res < 0) {
posix_error();
return NULL;
}
if (res < 0)
return posix_error();
Py_INCREF(Py_None);
return Py_None;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment