[clang-tidy] do not use else after return

Found with readability-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-04-18 22:16:22 -07:00
parent bd89499e07
commit 042f62dfc5
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B
63 changed files with 372 additions and 300 deletions

View file

@ -492,7 +492,9 @@ static PyObject *Table_next_fs(TableObject *self)
if (rc == 1) {
mnt_reset_iter(self->iter, MNT_ITER_FORWARD);
Py_RETURN_NONE;
} else if (rc)
}
if (rc)
return UL_RaiseExc(-rc);
return PyObjectResultFs(fs);