mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
librpc: Avoid an else
With an early return; we don't need the "else" Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8971f2ae0f
commit
167bc2cfc5
@ -55,7 +55,9 @@ static bool ndr_syntax_from_py_object(PyObject *object, struct ndr_syntax_id *sy
|
||||
|
||||
if (PyUnicode_Check(object)) {
|
||||
return PyString_AsGUID(object, &syntax_id->uuid);
|
||||
} else if (PyTuple_Check(object)) {
|
||||
}
|
||||
|
||||
if (PyTuple_Check(object)) {
|
||||
PyObject *item = NULL;
|
||||
if (PyTuple_Size(object) < 1 || PyTuple_Size(object) > 2) {
|
||||
PyErr_SetString(PyExc_ValueError, "Syntax ID tuple has invalid size");
|
||||
|
Loading…
Reference in New Issue
Block a user