diff options
author | Hans Goudey <h.goudey@me.com> | 2021-02-18 22:58:27 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-18 22:58:27 +0300 |
commit | 73f4dfa3c5fd2714ed2fff528588d0826995449e (patch) | |
tree | 3f2d64681758e8a32ed54b6b9559b78dae598e96 /source/blender/python/gpu/gpu_py_buffer.c | |
parent | d519b33b327607ad7835561d951559da8f79034e (diff) |
Cleanup: Clang tidy else after return
Diffstat (limited to 'source/blender/python/gpu/gpu_py_buffer.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_buffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/python/gpu/gpu_py_buffer.c b/source/blender/python/gpu/gpu_py_buffer.c index 115f7ba923f..b89d2c6a69f 100644 --- a/source/blender/python/gpu/gpu_py_buffer.c +++ b/source/blender/python/gpu/gpu_py_buffer.c @@ -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) { |