Cleanup: Clang tidy else after return
This commit is contained in:
parent
d519b33b32
commit
73f4dfa3c5
|
@ -330,9 +330,7 @@ static PyObject *pygpu_buffer__tp_new(PyTypeObject *UNUSED(type), PyObject *args
|
|||
Py_DECREF(ob);
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
shape[i] = PyLong_AsLong(ob);
|
||||
}
|
||||
shape[i] = PyLong_AsLong(ob);
|
||||
Py_DECREF(ob);
|
||||
|
||||
if (shape[i] < 1) {
|
||||
|
|
|
@ -300,7 +300,7 @@ static PyObject *pygpu_framebuffer__tp_new(PyTypeObject *UNUSED(self),
|
|||
if (!pygpu_framebuffer_new_parse_arg(depth_attachment, &config[0])) {
|
||||
return NULL;
|
||||
}
|
||||
else if (config[0].tex && !GPU_texture_depth(config[0].tex)) {
|
||||
if (config[0].tex && !GPU_texture_depth(config[0].tex)) {
|
||||
PyErr_SetString(PyExc_ValueError, "Depth texture with incompatible format");
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue