Base: Do not use else before return
This commit is contained in:
@@ -193,6 +193,7 @@ double UnitsApi::toDouble(PyObject* args, const Base::Unit& u)
|
||||
}
|
||||
throw Base::UnitsMismatchError("Wrong unit type!");
|
||||
}
|
||||
|
||||
if (PyFloat_Check(args)) {
|
||||
return PyFloat_AsDouble(args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user